fix 修复 pr书写错误问题
This commit is contained in:
parent
7feead9afc
commit
0815fa2978
@ -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: '/' });
|
||||
|
@ -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,
|
||||
|
@ -31,7 +31,7 @@
|
||||
"forceConsistentCasingInFileNames": true // 强制在文件名中使用一致的大小写
|
||||
},
|
||||
"include": [
|
||||
"src/**/.ts",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.vue",
|
||||
"vite.config.ts",
|
||||
"vitest.config.ts",
|
||||
|
Loading…
x
Reference in New Issue
Block a user