diff --git a/src/components/ConfigGlobal/src/ConfigGlobal.vue b/src/components/ConfigGlobal/src/ConfigGlobal.vue index 20ff035..429acc7 100644 --- a/src/components/ConfigGlobal/src/ConfigGlobal.vue +++ b/src/components/ConfigGlobal/src/ConfigGlobal.vue @@ -22,13 +22,13 @@ onMounted(() => { appStore.setCssVarTheme() }) -const { width } = useWindowSize() +const { width, height } = useWindowSize() // 监听窗口变化 watch( () => width.value, (width: number) => { - if (width < 768) { + if (width < 768 || height.value < 450) { !appStore.getMobile ? appStore.setMobile(true) : undefined setCssVar('--left-menu-min-width', '0') appStore.setCollapse(true) diff --git a/src/views/Basic/User/index.vue b/src/views/Basic/User/index.vue index d448c63..ad1753a 100644 --- a/src/views/Basic/User/index.vue +++ b/src/views/Basic/User/index.vue @@ -6,8 +6,8 @@ - - + + - + + + + 在职 + 离职 + + 搜索 重置 @@ -44,12 +50,14 @@ - +