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) => {
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: '/' });

View File

@ -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,