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 @@