@@ -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++;
}
})
@@ -59,7 +59,6 @@ button:focus-visible {
#app {
- max-width: 1280px;
margin: 0 auto;
/* padding: 2rem;*/
text-align: center;
@@ -99,14 +99,12 @@ function showVideo(){
function hideVideo(){
- if(clientStore.isClient){
clientStore.ipc.removeAllListeners(icpList.camera.PreviewHide);
clientStore.ipc.send(icpList.camera.PreviewHide);
clientStore.ipc.on(icpList.camera.PreviewHide, async (event, result) => {
if(interval) clearInterval(interval)
- }