fix 修复 pr书写错误问题

This commit is contained in:
疯狂的狮子Li 2025-03-12 12:14:51 +08:00
parent 7feead9afc
commit 0815fa2978
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

@ -31,7 +31,7 @@
"forceConsistentCasingInFileNames": true // 使 "forceConsistentCasingInFileNames": true // 使
}, },
"include": [ "include": [
"src/**/.ts", "src/**/*.ts",
"src/**/*.vue", "src/**/*.vue",
"vite.config.ts", "vite.config.ts",
"vitest.config.ts", "vitest.config.ts",