flat: 添加config项目配置文件
This commit is contained in:
16
App.vue
16
App.vue
@@ -37,6 +37,9 @@
|
||||
return this.news.allUnread
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$config.showTitle && document.documentElement.style.setProperty('--hide-title', 'block');
|
||||
},
|
||||
watch: {
|
||||
allUnread(value) {
|
||||
if (!this.$store.state.user.token) {} else if (value > 0) {
|
||||
@@ -63,7 +66,7 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
/* tabbar 字体大小 */
|
||||
/* .uni-tabbar__label{
|
||||
@@ -75,4 +78,15 @@
|
||||
font-style: mormal;
|
||||
src: url('/static/font/font_2225171_8kdcwk4po24.ttf') format('truetype');
|
||||
}
|
||||
|
||||
:root {
|
||||
--hide-title: none;
|
||||
}
|
||||
|
||||
/* #ifdef H5 */
|
||||
uni-page-head {
|
||||
display: var(--hide-title);
|
||||
}
|
||||
|
||||
/* #endif */
|
||||
</style>
|
||||
Reference in New Issue
Block a user