Browse Source

style: format code

nian 2 tháng trước cách đây
mục cha
commit
92a459098c
2 tập tin đã thay đổi với 2 bổ sung6 xóa
  1. 1 5
      src/router/guard.ts
  2. 1 1
      src/stores/configure.ts

+ 1 - 5
src/router/guard.ts

@@ -14,7 +14,6 @@ const configureStore = useConfigureStore(createPinia())
 
 export function setupRouterGuard(router: Router) {
   router.beforeEach(async (to, from, next) => {
-
     if (configureStore.configure.showTopLoadingBar) {
       loadingBar.start()
     }
@@ -67,13 +66,10 @@ export function setupRouterGuard(router: Router) {
   })
 
   router.beforeResolve((_, __, next) => {
-    setTimeout(() => {
-      next()
-    }, 3000)
+    next()
   })
 
   router.afterEach(() => {
-
     if (configureStore.configure.showTopLoadingBar) {
       loadingBar.finish()
     }

+ 1 - 1
src/stores/configure.ts

@@ -1,7 +1,7 @@
 import { useStorage } from '@vueuse/core'
 import { mergeWith } from 'lodash-es'
 import { acceptHMRUpdate, defineStore } from 'pinia'
-import { ref, watch } from 'vue'
+import { watch } from 'vue'
 
 import type { WatermarkProps } from 'naive-ui'