CzRger 6 miesięcy temu
rodzic
commit
a5d93b6ea3

+ 11 - 0
src/stores/indexDB.ts

@@ -63,6 +63,17 @@ export const useIndexDBStore = defineStore('indexDB', {
           if (re.result) {
             resolve(JSON.parse(re.result.json))
             loading.close()
+          } else {
+            ElNotification({
+              duration: 0,
+              title: '提示',
+              message: '查询条件获取失败,请重新输入!',
+              type: 'warning',
+              onClose: () => {
+              }
+            })
+            reject()
+            loading.close()
           }
         }
       })

+ 1 - 1
src/views/web/home/index.vue

@@ -46,7 +46,7 @@
     </div>
     <CusDialog
       :show="state.showArea"
-      @onClose="$emit('update:show', false)"
+      @onClose="state.showArea = false"
       width="1000px"
       height="auto"
       submit-text="关闭"

+ 4 - 0
src/views/web/list/index.vue

@@ -696,6 +696,10 @@ onMounted(() => {
           }
           initWS()
         }
+      }).catch(() => {
+        router.replace({
+          name: '71305311-abcc-4d13-8531-f966b49839c5'
+        })
       })
     }
   })