From 4ac32753f16a194280997a90a5081b9341b12a84 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Thu, 2 Jul 2026 15:21:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 1 + frontend/.env.production | 1 + frontend/src/layouts/components/Footer/index.vue | 4 +++- frontend/src/layouts/components/Header/components/Avatar.vue | 3 ++- frontend/src/types/env.d.ts | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/.env.development b/frontend/.env.development index 7db2343..3b4c63c 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -17,6 +17,7 @@ VITE_PWA=false # 开发环境接口地址 VITE_API_URL=/api VITE_COMPANY_WEBSITE=http://www.shining-electric.com/ +VITE_COMPANY_NAME=南京灿能电力自动化股份有限公司 # 开发环境跨域代理,支持配置多个 diff --git a/frontend/.env.production b/frontend/.env.production index 3d2f058..4cd2852 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -25,6 +25,7 @@ VITE_PWA=true #VITE_API_URL="/api" # 打包时用 VITE_API_URL="http://127.0.0.1:18092/" VITE_COMPANY_WEBSITE=http://www.shining-electric.com/ +VITE_COMPANY_NAME=南京灿能电力自动化股份有限公司 VITE_IS_SHOW_RAW_DATA=true # 开启激活验证 VITE_ACTIVATE_OPEN=true diff --git a/frontend/src/layouts/components/Footer/index.vue b/frontend/src/layouts/components/Footer/index.vue index ad5044f..36fc8f3 100644 --- a/frontend/src/layouts/components/Footer/index.vue +++ b/frontend/src/layouts/components/Footer/index.vue @@ -20,7 +20,7 @@
- 2024 © 南京灿能电力自动化股份有限公司 + {{new Date().getFullYear()}} ©{{companyName}}
@@ -44,6 +44,8 @@ const title = computed(() => { const activateInfo = authStore.activateInfo const isActivateOpen = import.meta.env.VITE_ACTIVATE_OPEN const companyWebsite = import.meta.env.VITE_COMPANY_WEBSITE +const companyName = import.meta.env.VITE_COMPANY_NAME +console.log(companyWebsite,companyName) const modeList = [ { diff --git a/frontend/src/layouts/components/Header/components/Avatar.vue b/frontend/src/layouts/components/Header/components/Avatar.vue index 55840a2..7c3916e 100644 --- a/frontend/src/layouts/components/Header/components/Avatar.vue +++ b/frontend/src/layouts/components/Header/components/Avatar.vue @@ -56,7 +56,8 @@