userCheck.ts 799 B

123456789101112131415161718192021222324
  1. import { watchEffect } from 'vue';
  2. import { ElMessageBox } from 'element-plus';
  3. import checkInfo from "../stores/modules/check";
  4. const checkInfoStore = checkInfo()
  5. export function useCheckInfo() {
  6. watchEffect(async ()=>{
  7. if( checkInfoStore.getProgress !== 100 && !checkInfoStore.isCheckStatus){
  8. ElMessageBox({
  9. title:"链接出错!",
  10. message:'设备连接出错,请在主窗口中重新连接设备后,在重新打开此窗口后进行操作',
  11. showCancelButton:false,
  12. showConfirmButton:false,
  13. closeOnClickModal:false,
  14. closeOnPressEscape:false,
  15. closeOnHashChange:false,
  16. showClose:false
  17. })
  18. return
  19. }
  20. })
  21. }