Browse Source

mod:#app 样式 调整

panqiuyao 8 months ago
parent
commit
62029f4a47

+ 6 - 2
frontend/src/components/check/index.vue

@@ -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++;
   }
 })

+ 0 - 1
frontend/src/style.css

@@ -59,7 +59,6 @@ button:focus-visible {
 }
 
 #app {
-  max-width: 1280px;
   margin: 0 auto;
   /*  padding: 2rem;*/
   text-align: center;

+ 0 - 2
frontend/src/views/Photography/check.vue

@@ -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)
     })
-  }
 
 }