From e3d4018c143cd8127e31091f7da6f278ebb81dfd Mon Sep 17 00:00:00 2001 From: likaikai <593496637@qq.com> Date: 星期六, 29 六月 2024 14:11:19 +0800 Subject: [PATCH] chore:1.修复升级element-plus后el-radio使用label过期的问题。2.修复DictTag组件缺少type的问题 --- src/utils/dynamicTitle.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/dynamicTitle.js b/src/utils/dynamicTitle.js index 02d625e..b55d6a1 100644 --- a/src/utils/dynamicTitle.js +++ b/src/utils/dynamicTitle.js @@ -1,12 +1,14 @@ import store from '@/store' import defaultSettings from '@/settings' +import useSettingsStore from '@/store/modules/settings' /** * 鍔ㄦ�佷慨鏀规爣棰� */ export function useDynamicTitle() { - if (store.state.settings.dynamicTitle) { - document.title = store.state.settings.title + ' - ' + defaultSettings.title; + const settingsStore = useSettingsStore(); + if (settingsStore.dynamicTitle) { + document.title = settingsStore.title + ' - ' + defaultSettings.title; } else { document.title = defaultSettings.title; } -- Gitblit v1.9.3