|
|
@@ -64,6 +64,8 @@
|
|
|
import { ref, computed, watch, onBeforeUnmount, nextTick, watchEffect } from 'vue';
|
|
|
import useUserInfo from "@/stores/modules/user";
|
|
|
import checkInfo from "@/stores/modules/check";
|
|
|
+import client from "@/stores/modules/client";
|
|
|
+const clientStore = client();
|
|
|
|
|
|
/**
|
|
|
* 定义组件的 props。
|
|
|
@@ -135,8 +137,10 @@ function reCheck() {
|
|
|
*/
|
|
|
watchEffect(async ()=>{
|
|
|
if( useUserInfoStore.userInfo.id && checkCount.value === 0){
|
|
|
- visible.value = true
|
|
|
- startProgress()
|
|
|
+ if(clientStore.isClient){
|
|
|
+ visible.value = true
|
|
|
+ startProgress()
|
|
|
+ }
|
|
|
checkCount.value++;
|
|
|
}
|
|
|
})
|