From 430b1bce2f9bf0c5e9aa269fb0ee3aee22be49d6 Mon Sep 17 00:00:00 2001 From: dminyi <1301963064@qq.com> Date: Mon, 26 Aug 2024 11:03:54 +0800 Subject: [PATCH] 后端迁移后bug修复 --- gz-customerSystem/src/components/Layout/index.jsx | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gz-customerSystem/src/components/Layout/index.jsx b/gz-customerSystem/src/components/Layout/index.jsx index 6585e1c..9120463 100644 --- a/gz-customerSystem/src/components/Layout/index.jsx +++ b/gz-customerSystem/src/components/Layout/index.jsx @@ -2,7 +2,7 @@ * @Company: hugeInfo * @Author: ldh * @Date: 2022-03-11 14:22:43 - * @LastEditTime: 2023-12-25 16:10:51 + * @LastEditTime: 2024-08-26 10:19:52 * @LastEditors: dminyi 1301963064@qq.com * @Version: 1.0.0 * @Description: 外层layout @@ -117,16 +117,17 @@ async function getRolePower(roleId, roleName) { global.setSpinning(true); const res = await getRolePowerApi(roleId); + console.log(res,'res1111') global.setSpinning(false); if (res.type) { let resData = res.data?.roleTreeBOS || []; let menu_data = []; let power_data = []; resData.forEach((x) => { - if (x.appClient === '1' && x.powerTag !== 'pay') { + if (x.appClient === 1 && x.powerTag !== 'pay') { menu_data.push(x); } - if (x.appClient === '1' || x.powerTag === 'pay') { + if (x.appClient === 1 || x.powerTag === 'pay') { power_data.push(x); } }); -- Gitblit v1.8.0