diff --git a/src/global.d.ts b/src/global.d.ts index e99fad98..ab0b37b5 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -52,15 +52,15 @@ declare namespace Settings { */ routeBaseOn?: 'frontend' | 'backend' | 'filesystem' } - interface dashboard { + interface home { /** - * 是否开启控制台页面 + * 是否开启主页页面 * @默认值 `true` */ enable?: boolean /** - * 控制台名称 - * @默认值 `'控制台'` + * 主页名称 + * @默认值 `'主页'` */ title?: string } @@ -189,8 +189,8 @@ declare namespace Settings { interface all { /** 应用设置 */ app?: app - /** 控制台设置 */ - dashboard?: dashboard + /** 主页设置 */ + home?: home /** 布局设置 */ layout?: layout /** 导航栏设置 */ diff --git a/src/layouts/components/AppSetting/index.vue b/src/layouts/components/AppSetting/index.vue index 7e5ba0e9..33bd8553 100644 --- a/src/layouts/components/AppSetting/index.vue +++ b/src/layouts/components/AppSetting/index.vue @@ -226,23 +226,23 @@ function handleCopy() { - 控制台 + 主页
是否开启 - +
- +
- 控制台名称 + 主页名称
- +
其它
diff --git a/src/layouts/components/Logo/index.vue b/src/layouts/components/Logo/index.vue index bdcd2283..4089f685 100644 --- a/src/layouts/components/Logo/index.vue +++ b/src/layouts/components/Logo/index.vue @@ -22,15 +22,15 @@ const to = computed(() => { const rtn: { name?: string } = {} - if (settingsStore.dashboard.enable) { - rtn.name = 'dashboard' + if (settingsStore.home.enable) { + rtn.name = 'home' } return rtn })