From 9af7c5023477c41dc2f02f30c1156ba4f108324b Mon Sep 17 00:00:00 2001 From: hejianhao <15708179461@qq.com> Date: 星期四, 03 四月 2025 18:01:04 +0800 Subject: [PATCH] 工作交付评定 --- src/layouts/components/AppContent.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/layouts/components/AppContent.vue b/src/layouts/components/AppContent.vue index 92d87e8..62372dc 100644 --- a/src/layouts/components/AppContent.vue +++ b/src/layouts/components/AppContent.vue @@ -1,5 +1,5 @@ <template> - <div style="height: 100%;"> + <div @click="foldFun" style="height: 100%;"> <keep-alive :include="keepAliveList"> <router-view /> </keep-alive> @@ -16,6 +16,13 @@ }, computed: { ...mapState(['keepAliveList']) + }, + methods: { + foldFun() { + if (window.innerWidth < 1000) { + this.$store.commit('SET_ISFOLD', true) + } + } } } </script> -- Gitblit v1.7.1