Commit 70ceb1ca authored by dragondean@qq.com's avatar dragondean@qq.com

优化title设置

parent 42c4e727
......@@ -2,7 +2,7 @@
NODE_ENV = 'production'
# 页面标题
VUE_APP_TITLE = 捷道管理系统
VUE_APP_TITLE = 捷道管理系统 - 测试版
# 捷道管理系统/开发环境
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
......@@ -18,7 +18,4 @@ VUE_APP_TENANT_ENABLE = false
VUE_APP_DOC_ENABLE = true
# 百度统计
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
#测试站编辑
VUE_APP_DEVELOPMENT=true
\ No newline at end of file
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
\ No newline at end of file
......@@ -2,7 +2,7 @@
ENV = 'development'
# 页面标题
VUE_APP_TITLE = 捷道管理系统
VUE_APP_TITLE = 捷道管理系统-测试站
# 捷道管理系统/开发环境
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
......@@ -17,7 +17,4 @@ VUE_APP_TENANT_ENABLE = false
VUE_APP_DOC_ENABLE = true
# 百度统计
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
#测试站编辑
VUE_APP_DEVELOPMENT=true
\ No newline at end of file
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
\ No newline at end of file
......@@ -5,14 +5,12 @@
<img v-if="logo" :src="logo" class="sidebar-logo" />
<h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{ title }}
<span v-if="isDevelopment">-测试版</span>
</h1>
</router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo" />
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{ title }}
<span v-if="isDevelopment">-测试版</span>
</h1>
</router-link>
</transition>
......@@ -40,15 +38,12 @@ export default {
}
},
created(){
if (process.env.VUE_APP_DEVELOPMENT){
this.isDevelopment = true
}
console.log('process.env', process.env)
},
data() {
return {
title: '捷道管理系统',
logo: logoImg,
isDevelopment: false // 是否开发模式
title: process.env.VUE_APP_TITLE,
logo: logoImg
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment