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]; } },