diff --git a/src/apis/system/type.ts b/src/apis/system/type.ts index a542dfd..b925116 100644 --- a/src/apis/system/type.ts +++ b/src/apis/system/type.ts @@ -283,6 +283,14 @@ export interface BasicConfig { SITE_COPYRIGHT: string } +/** 基础配置类型 */ +export interface SiteConfig { + SITE_FAVICON: OptionResp + SITE_LOGO: OptionResp + SITE_TITLE: OptionResp + SITE_COPYRIGHT: OptionResp +} + /** 邮箱配置类型 */ export interface MailConfig { MAIL_SMTP_HOST: OptionResp diff --git a/src/views/system/config/components/BasicSetting.vue b/src/views/system/config/components/BasicSetting.vue index 2e44324..98efd72 100644 --- a/src/views/system/config/components/BasicSetting.vue +++ b/src/views/system/config/components/BasicSetting.vue @@ -2,10 +2,10 @@ - - {{ siteFavicon?.name }} + + {{ siteConfig.SITE_FAVICON.name }} 保存 - 重置 + 重置 - 取消 + 取消 @@ -108,38 +101,48 @@