Browse Source

mod:打开目录

panqiuyao 8 months ago
parent
commit
7d7dfca498
2 changed files with 10 additions and 0 deletions
  1. 6 0
      frontend/src/components/login/index.vue
  2. 4 0
      frontend/src/views/Photography/shot.vue

+ 6 - 0
frontend/src/components/login/index.vue

@@ -211,6 +211,9 @@ const handleLogin = async () => {
     default:
       await  useUserInfoStore.getInfo()
       useUserInfoStore.updateLoginShow(false)
+      setTimeout(()=>{
+        window.location.reload()
+      },100)
         break;
   }
 
@@ -248,6 +251,9 @@ async function toggleCompany() {
   })
   await  useUserInfoStore.getInfo()
   useUserInfoStore.updateLoginShow(false)
+  setTimeout(()=>{
+    window.location.reload()
+  },100)
 }
 
 const sendVerificationCode = () => {

+ 4 - 0
frontend/src/views/Photography/shot.vue

@@ -420,6 +420,10 @@ onBeforeUnmount(() => {
  */
 function openPhotographyDetail() {
 
+  if(takePictureLoading.value){
+    ElMessage.error('正在拍摄中,请稍候')
+    return;
+  }
   const { href } = Router.resolve({
     name: 'PhotographyDetail',
     query:{