master
吴普建 11 months ago
parent 567c004135
commit 13e7d5cd4d

@ -617,8 +617,7 @@ export default defineComponent({
}
localStorage.setItem('zjCount', this.detectionDayNum);
}, 1000000)
const app = useAppStore();
app.setContentFull(true);
this.initData();
this.handleScreenAuto();
// ---
@ -629,6 +628,7 @@ export default defineComponent({
//
window.addEventListener('resize', this.debouncedHandleResize);
},
beforeUnmount() {
//
if (this.debouncedHandleResize) {
@ -636,6 +636,11 @@ export default defineComponent({
}
},
methods: {
changeYear(){
this.fullScreen = !this.fullScreen;
const app = useAppStore();
app.setContentFull(this.fullScreen);
},
//
debounce(func, wait = 100) {
let timeout;

Loading…
Cancel
Save