|
@ -11,7 +11,7 @@ const timer = ref() |
|
|
const websocketConnected = ref(true) |
|
|
const websocketConnected = ref(true) |
|
|
|
|
|
|
|
|
const countdownToReconnection = () => { |
|
|
const countdownToReconnection = () => { |
|
|
startTimer(30 * 1000, (times: string) => { |
|
|
|
|
|
|
|
|
startTimer(10 * 1000, (times: string) => { |
|
|
if (times === '0') { |
|
|
if (times === '0') { |
|
|
router.push('/login') |
|
|
router.push('/login') |
|
|
return |
|
|
return |
|
@ -36,7 +36,7 @@ watchEffect(() => { |
|
|
<div class="reconnect-modal-container"> |
|
|
<div class="reconnect-modal-container"> |
|
|
<div class="reconnect-spinner" /> |
|
|
<div class="reconnect-spinner" /> |
|
|
<h2 class="reconnect-title"> |
|
|
<h2 class="reconnect-title"> |
|
|
正在重连中 {{ timer }} |
|
|
|
|
|
|
|
|
{{ timer }}秒后重新链接 |
|
|
</h2> |
|
|
</h2> |
|
|
<p class="reconnect-message"> |
|
|
<p class="reconnect-message"> |
|
|
请稍候,系统正在尝试重新连接网络... |
|
|
请稍候,系统正在尝试重新连接网络... |
|
|