Commit d076d67a authored by dragondean@qq.com's avatar dragondean@qq.com

开发板标题加测试字样

parent 3d4621a5
......@@ -3,11 +3,17 @@
<transition name="sidebarLogoFade">
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
<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 }} </h1>
<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 }} </h1>
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{ title }}
<span v-if="isDevelopment">-测试版</span>
</h1>
</router-link>
</transition>
</div>
......@@ -33,10 +39,16 @@ export default {
return this.$store.state.settings.sideTheme
}
},
created(){
if (process.env.NODE_ENV === 'development'){
this.isDevelopment = true
}
},
data() {
return {
title: '捷道管理系统',
logo: logoImg
logo: logoImg,
isDevelopment: false // 是否开发模式
}
}
}
......
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