|
|
@ -5,7 +5,7 @@ import Check from 'components/home/Check/index.vue' |
|
|
|
import Environment from 'components/home/Environment/index.vue' |
|
|
|
import Stop from 'components/home/Stop/index.vue' |
|
|
|
import { ElMessageBox } from 'element-plus' |
|
|
|
import { isClose, socket } from 'libs/socket' |
|
|
|
import { isClose, reconnectCurrentCount, socket } from 'libs/socket' |
|
|
|
import { useSystemStore } from 'stores/useSystemStore' // 引入 systemStore |
|
|
|
import { computed, ref, watch } from 'vue' |
|
|
|
import { useRoute, useRouter } from 'vue-router' |
|
|
@ -174,8 +174,18 @@ const backHandle = () => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="display: flex"> |
|
|
|
<img v-show="!isClose" class="wifi-icon" src="../../assets/images/icon_wifi.svg" alt=""> |
|
|
|
<img v-show="isClose" class="wifi-icon" src="../../assets/images/icon_wifi_red.svg" alt=""> |
|
|
|
<el-tooltip |
|
|
|
class="box-item" |
|
|
|
effect="dark" |
|
|
|
:content="isClose ? `尝试重连: ${reconnectCurrentCount}次` : '已连接'" |
|
|
|
placement="top-start" |
|
|
|
> |
|
|
|
<img v-if="!isClose" class="wifi-icon" src="../../assets/images/icon_wifi.svg" alt=""> |
|
|
|
<el-badge v-else :value="reconnectCurrentCount" :offset="[-20, 0]"> |
|
|
|
<img class="wifi-icon" src="../../assets/images/icon_wifi_red.svg" alt=""> |
|
|
|
</el-badge> |
|
|
|
</el-tooltip> |
|
|
|
|
|
|
|
<ft-button v-if="systemStore.isDebug" @click="router.push('/debug')"> |
|
|
|
调试 |
|
|
|
</ft-button> |
|
|
@ -278,6 +288,6 @@ const backHandle = () => { |
|
|
|
} |
|
|
|
.wifi-icon { |
|
|
|
width: 50px; |
|
|
|
margin: 0 30px; |
|
|
|
margin: 0 50px; |
|
|
|
} |
|
|
|
</style> |