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