From bf46881e3b8ca19ff9aabff5e0fef44879ce8786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E8=8D=A3=E8=B6=85?= <302645122@qq.com> Date: Tue, 15 Mar 2022 16:44:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B9=E7=9B=AE-=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8tab=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/functions/web.js | 3 +- .../pages/manage/components/ProjectList.vue | 48 ++++++++----------- resources/assets/js/store/actions.js | 7 ++- resources/assets/js/store/getters.js | 2 +- 4 files changed, 29 insertions(+), 31 deletions(-) diff --git a/resources/assets/js/functions/web.js b/resources/assets/js/functions/web.js index aa37a4cbc..f832901a7 100755 --- a/resources/assets/js/functions/web.js +++ b/resources/assets/js/functions/web.js @@ -66,8 +66,7 @@ return { project_id, card: true, - menu: false, - gantt: false, + menuType: 'card', cardInit: false, chat: false, showMy: true, diff --git a/resources/assets/js/pages/manage/components/ProjectList.vue b/resources/assets/js/pages/manage/components/ProjectList.vue index c9a4fcfd1..a116b0ebd 100644 --- a/resources/assets/js/pages/manage/components/ProjectList.vue +++ b/resources/assets/js/pages/manage/components/ProjectList.vue @@ -82,14 +82,14 @@
-
-
-
+
+
+
-
+
-
+
# {{$L('任务名称')}} @@ -312,7 +312,7 @@
-
+
item.project_id == project_id) } const cache = state.cacheProjectParameter[index]; - if (!$A.isJson(key)) { + if (!$A.isJson(key) && !value) { key = {[key]: !cache[key]}; } + if (value) { + key = {[key]: value}; + } state.cacheProjectParameter.splice(index, 1, Object.assign(cache, key)) setTimeout(() => { $A.setStorage("cacheProjectParameter", state.cacheProjectParameter); diff --git a/resources/assets/js/store/getters.js b/resources/assets/js/store/getters.js index 67b8b2f68..638501e4e 100644 --- a/resources/assets/js/store/getters.js +++ b/resources/assets/js/store/getters.js @@ -34,7 +34,7 @@ export default { cache = $A.projectParameterTemplate(state.projectId) state.cacheProjectParameter.push(cache); } - return cache && !!cache[key]; + return cache[key]; } },