|
|
|
@ -617,8 +617,7 @@ export default defineComponent({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
localStorage.setItem('zjCount', this.detectionDayNum);
|
|
|
|
localStorage.setItem('zjCount', this.detectionDayNum);
|
|
|
|
}, 1000000)
|
|
|
|
}, 1000000)
|
|
|
|
const app = useAppStore();
|
|
|
|
|
|
|
|
app.setContentFull(true);
|
|
|
|
|
|
|
|
this.initData();
|
|
|
|
this.initData();
|
|
|
|
this.handleScreenAuto();
|
|
|
|
this.handleScreenAuto();
|
|
|
|
// 绑定自适应函数 ---防止浏览器栏变化后不再适配
|
|
|
|
// 绑定自适应函数 ---防止浏览器栏变化后不再适配
|
|
|
|
@ -629,6 +628,7 @@ export default defineComponent({
|
|
|
|
// 绑定自适应函数
|
|
|
|
// 绑定自适应函数
|
|
|
|
window.addEventListener('resize', this.debouncedHandleResize);
|
|
|
|
window.addEventListener('resize', this.debouncedHandleResize);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
beforeUnmount() {
|
|
|
|
beforeUnmount() {
|
|
|
|
// 页面离开时移除监听
|
|
|
|
// 页面离开时移除监听
|
|
|
|
if (this.debouncedHandleResize) {
|
|
|
|
if (this.debouncedHandleResize) {
|
|
|
|
@ -636,6 +636,11 @@ export default defineComponent({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
changeYear(){
|
|
|
|
|
|
|
|
this.fullScreen = !this.fullScreen;
|
|
|
|
|
|
|
|
const app = useAppStore();
|
|
|
|
|
|
|
|
app.setContentFull(this.fullScreen);
|
|
|
|
|
|
|
|
},
|
|
|
|
// 防抖函数
|
|
|
|
// 防抖函数
|
|
|
|
debounce(func, wait = 100) {
|
|
|
|
debounce(func, wait = 100) {
|
|
|
|
let timeout;
|
|
|
|
let timeout;
|
|
|
|
|