This commit is contained in:
张成
2025-10-09 23:50:03 +08:00
parent 0b78af46cd
commit 88cd8d6e72
37 changed files with 444 additions and 240 deletions

View File

@@ -26,9 +26,9 @@ export default {
},
actions: {
async getSysTitle({ state, commit, rootState }, { defaultTitle, defaultLogo = '' } = {}) {
// 如果没有传入 defaultTitle尝试从 Vue 实例的配置中获取
if (!defaultTitle && window.rootVue && window.rootVue.$config) {
defaultTitle = window.rootVue.$config.title || '智能代码平台'
// 如果没有传入 defaultTitle尝试从框架配置中获取
if (!defaultTitle && window.framework && window.framework.config) {
defaultTitle = window.framework.config.title || '智能代码平台'
} else if (!defaultTitle) {
defaultTitle = '智能代码平台'
}