From bd4bd3826e7d6d654967896de60ef946a6f7b378 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Thu, 29 Jul 2021 15:32:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(task=E4=BB=BB=E5=8A=A1=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=AE=8C=E5=96=84):=20=E5=87=8F=E5=B0=91=E5=88=9D=E5=A7=8Bglob?= =?UTF-8?q?al=E5=8F=8Aregular=E7=9A=84=E4=B8=8D=E5=BF=85=E8=A6=81=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. globals通过getters整合; 2. globals 请求放到了store/task 3.初始没数据不继续请求 --- CHANGELOG.md | 1 + src/components/Globals/Globals.vue | 15 +++-- src/components/TimeLine/TimeLine.vue | 4 -- src/pages/project/project.vue | 99 +++++++++------------------- src/store/task/actions.js | 44 +++++++++++-- src/store/task/getters.js | 7 +- src/store/task/mutations.js | 9 +++ src/store/task/state.js | 12 ++-- 8 files changed, 102 insertions(+), 89 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21dabfa..2bfbaa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,6 +88,7 @@ store/home | 删除store/home | db8a3b4 template | eslint prettier sass uview tailwindcss | 9c966a1 - | 下滑时间轴添加备注 | 4fd20e3 + - | 删除多余的技术验证界面 | 542ae5b - | 界面样式调整 | 4367249 - | 重构store分层 | 5f6fff8 diff --git a/src/components/Globals/Globals.vue b/src/components/Globals/Globals.vue index 373e906..c92c0ae 100644 --- a/src/components/Globals/Globals.vue +++ b/src/components/Globals/Globals.vue @@ -1,11 +1,11 @@