update
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
</div>
|
||||
<div class="overlay-app"></div>
|
||||
</div>
|
||||
<div v-if="icp_info!==''" style="z-index: 9999;display: flex;flex-direction: row">
|
||||
<el-link style="color: var(--theme-color);" :underline="false" href="https://beian.miit.gov.cn/" target="_blank">备案号: </el-link>
|
||||
<el-link style="color: var(--theme-color);" :underline="false" href="https://beian.miit.gov.cn/" target="_blank"> {{icp_info}}</el-link>
|
||||
</div>
|
||||
</body>
|
||||
</template>
|
||||
|
||||
@@ -43,13 +47,28 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
value:null,
|
||||
|
||||
isLight:false,
|
||||
icp_info:null,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
created() {
|
||||
this.getConfig('open_dark_light');
|
||||
this.getConfig('icp_info');
|
||||
// let nowDate = new Date()
|
||||
// let hour = nowDate.getHours()
|
||||
// //黑夜时
|
||||
// if (hour > 18 && hour <= 24 || hour < 6) {
|
||||
// this.goDark()
|
||||
// }
|
||||
//根据本地存储状态哦按段
|
||||
if (localStorage.getItem('theme') === 'dark') {
|
||||
this.goDark()
|
||||
}else{
|
||||
this.goLight();
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
methods:{
|
||||
@@ -68,9 +87,9 @@ export default {
|
||||
if (res.data.open_dark_light) {
|
||||
_this.value = res.data.open_dark_light.value;
|
||||
}
|
||||
// if(res.data.dark_bg){
|
||||
// _this.dark_bg=res.data.dark_bg.value;
|
||||
// }
|
||||
if(res.data.icp_info){
|
||||
_this.icp_info=res.data.icp_info.value;
|
||||
}
|
||||
// if(res.data.light_bg){
|
||||
// _this.light_bg=res.data.light_bg.value;
|
||||
// }
|
||||
|
Reference in New Issue
Block a user