userCheck.ts 847 B

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