flat: 添加config项目配置文件

This commit is contained in:
Apcallover
2024-04-14 16:13:44 +08:00
parent 433bb86649
commit 6ea826b710
3 changed files with 104 additions and 56 deletions

16
App.vue
View File

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