From 68cc23e377e88e0190446cbffdd66186630cb7c9 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 19 Oct 2023 19:06:42 +0800 Subject: [PATCH] =?UTF-8?q?revert(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20=E5=9B=9E=E9=80=80=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=A8=A1=E5=9D=97=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1032204 --user=王孝刚 【系统设置】系统-默认空间配额未配置接口、UI、性能模块-修改为配置上述模块后-测试计划-未显示上述tab页 https://www.tapd.cn/55049933/s/1428709 --- .../frontend/src/directive/module/index.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/framework/sdk-parent/frontend/src/directive/module/index.js b/framework/sdk-parent/frontend/src/directive/module/index.js index 63a41420a4..e5b0f51e69 100644 --- a/framework/sdk-parent/frontend/src/directive/module/index.js +++ b/framework/sdk-parent/frontend/src/directive/module/index.js @@ -1,21 +1,6 @@ function enableModules(...modules) { - let sysModules = JSON.parse(sessionStorage.getItem("modules")); - let projectModules = JSON.parse(sessionStorage.getItem("project_modules")); - let workModules = JSON.parse(sessionStorage.getItem("workspace_modules")); for (let module of modules) { - if (module === "project" || module === "setting") { - return modules && modules[module] === "ENABLE"; - } - if (projectModules && projectModules.length > 0) { - return ( - sysModules[module] === "ENABLE" && projectModules.indexOf(module) > -1 - ); - } - if (workModules && workModules.length > 0) { - return ( - sysModules[module] === "ENABLE" && workModules.indexOf(module) > -1 - ); - } + let modules = JSON.parse(localStorage.getItem("modules")); if (modules && modules[module] === "DISABLE") { return false; }