From a53ece5036c1fa61a63fe5f9e0cd3519210ab928 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 07 Aug 2026 09:44:27 +0800
Subject: [PATCH] feat:兼容分辨率低不出现滚动条
---
applications/task-work-order/src/store/modules/user.js | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/applications/task-work-order/src/store/modules/user.js b/applications/task-work-order/src/store/modules/user.js
index 92e47f1..dba38b0 100644
--- a/applications/task-work-order/src/store/modules/user.js
+++ b/applications/task-work-order/src/store/modules/user.js
@@ -246,16 +246,14 @@
})
},
GetMenu({ commit, dispatch }, tenantId) {
- const errLogOut = () => {
- logOutFun()
- }
return new Promise(resolve => {
getRoutes({ tenantId, sysType: 6 })
.then(res => {
const data = res.data.data
let menu = deepClone(data)
if (!res.data?.data?.length) {
- errLogOut()
+ ElMessage.warning('当前角色没有配置菜单,请联系管理员配置')
+ setTimeout(logOutFun,1500)
return
}
menu.forEach(ele => formatPath(ele, true))
@@ -265,7 +263,7 @@
resolve(menu)
})
.catch(err => {
- errLogOut()
+ logOutFun()
})
})
},
--
Gitblit v1.9.3