| 123456789101112131415161718192021222324 |
- import { watchEffect } from 'vue';
- import { ElMessageBox } from 'element-plus';
- import checkInfo from "../stores/modules/check";
- const checkInfoStore = checkInfo()
- export function useCheckInfo() {
- watchEffect(async ()=>{
- if( checkInfoStore.getProgress !== 100 && !checkInfoStore.isCheckStatus){
- ElMessageBox({
- title:"链接出错!",
- message:'设备连接出错,请在主窗口中重新连接设备后,在重新打开此窗口后进行操作',
- showCancelButton:false,
- showConfirmButton:false,
- closeOnClickModal:false,
- closeOnPressEscape:false,
- closeOnHashChange:false,
- showClose:false
- })
- return
- }
- })
- }
|