时区显示增加配置

rj
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 num = e.data
} }
</script> </script>
<script src="./config.js"></script>
</head> </head>
<body> <body>
<noscript> <noscript>

View File

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