Przeglądaj źródła

fix 修复 pr书写错误问题

疯狂的狮子Li 1 miesiąc temu
rodzic
commit
0815fa2978
3 zmienionych plików z 3 dodań i 2 usunięć
  1. 1 1
      src/permission.ts
  2. 1 0
      src/store/modules/settings.ts
  3. 1 1
      tsconfig.json

+ 1 - 1
src/permission.ts

@@ -20,7 +20,7 @@ const isWhiteList = (path: string) => {
 router.beforeEach(async (to, from, next) => {
   NProgress.start();
   if (getToken()) {
-    to.meta.title && useSettingsStore().setTitle(to.meta.title);
+    to.meta.title && useSettingsStore().setTitle(to.meta.title as string);
     /* has token*/
     if (to.path === '/login') {
       next({ path: '/' });

+ 1 - 0
src/store/modules/settings.ts

@@ -5,6 +5,7 @@ import { useStorage } from '@vueuse/core';
 import { ref } from 'vue';
 
 export const useSettingsStore = defineStore('setting', () => {
+  // @ts-ignore
   const storageSetting = useStorage<LayoutSetting>('layout-setting', {
     topNav: defaultSettings.topNav,
     tagsView: defaultSettings.tagsView,

+ 1 - 1
tsconfig.json

@@ -31,7 +31,7 @@
     "forceConsistentCasingInFileNames": true // 强制在文件名中使用一致的大小写
   },
   "include": [
-    "src/**/.ts",
+    "src/**/*.ts",
     "src/**/*.vue",
     "vite.config.ts",
     "vitest.config.ts",