时区显示增加配置

main
wangxiaoshuang 2026-05-15 09:55:42 +08:00
parent 284432ffa4
commit 962ac2e693
3 changed files with 8 additions and 3 deletions

3
public/config.js Normal file
View File

@ -0,0 +1,3 @@
window.config = {
timeZone: false
}

View File

@ -67,6 +67,7 @@
num = e.data
}
</script>
<script src="./config.js"></script>
</head>
<body>
<noscript>

View File

@ -83,7 +83,7 @@
</div>
</el-drawer>
<feedBack v-if="$route.matched.length > 0" />
<!-- <timeTag /> -->
<timeTag v-if="config.timeZone" />
</div>
</template>
@ -94,14 +94,14 @@ import {
} from '@/api/dictionary/dictionary'
import { getTrialExtralConfig } from '@/api/trials'
import feedBack from '@/views/trials/trials-layout/components/feedBack'
// import timeTag from '@/components/timeTag'
import timeTag from '@/components/timeTag'
import Vue from 'vue'
import i18n from './lang'
export default {
name: 'App',
components: {
feedBack,
// timeTag
timeTag
},
data() {
return {
@ -112,6 +112,7 @@ export default {
arr: [],
il8nExternal: false,
State: null,
config: window.config
}
},
mounted() {