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

@ -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;

Loading…
Cancel
Save