From fbc3517af481602321199d78d0713395f8bd9f5c Mon Sep 17 00:00:00 2001 From: Charles7c Date: Wed, 29 May 2024 20:43:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E9=85=8D=E7=BD=AE=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/system/type.ts | 8 + .../system/config/components/BasicSetting.vue | 160 +++++++++--------- 2 files changed, 88 insertions(+), 80 deletions(-) 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 @@