From 4aa56c349fce952afa9f27e7a8319e6efb6aef38 Mon Sep 17 00:00:00 2001 From: lan-yonghui Date: Mon, 24 Apr 2023 22:52:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=96=B0=E6=89=8B=E5=BC=95=E5=AF=BC):?= =?UTF-8?q?=E6=96=B0=E6=89=8B=E6=8C=87=E5=8D=97=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/guide/Guidance.vue | 4 +- .../src/components/sidemenu/SideMenus.vue | 15 +++-- .../sidemenu/components/SiteTask.vue | 56 ++++++++++++++----- .../frontend/src/i18n/lang/en-US.js | 25 +++------ .../frontend/src/i18n/lang/zh-CN.js | 19 ++++--- .../frontend/src/i18n/lang/zh-TW.js | 31 +++++----- 6 files changed, 89 insertions(+), 61 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/guide/Guidance.vue b/framework/sdk-parent/frontend/src/components/guide/Guidance.vue index 449524f3d8..2cb9a0fc26 100644 --- a/framework/sdk-parent/frontend/src/components/guide/Guidance.vue +++ b/framework/sdk-parent/frontend/src/components/guide/Guidance.vue @@ -109,7 +109,7 @@ export default { buttons: [ { action: function() { - _this.$refs.introduction.resVisible = localStorage.getItem("step") > 1 + _this.$refs.introduction.resVisible = true return _this.gotoCancel(this, true) }, classes: 'close-btn', @@ -254,7 +254,7 @@ export default { buttons: [ { action: function() { - _this.$refs.introduction.resVisible = localStorage.getItem("step") > 1 + _this.$refs.introduction.resVisible = localStorage.getItem("step") > 0 return _this.gotoCancel(this, true) }, classes: 'close-btn', diff --git a/framework/sdk-parent/frontend/src/components/sidemenu/SideMenus.vue b/framework/sdk-parent/frontend/src/components/sidemenu/SideMenus.vue index 170fd2b88d..13d0563a9a 100644 --- a/framework/sdk-parent/frontend/src/components/sidemenu/SideMenus.vue +++ b/framework/sdk-parent/frontend/src/components/sidemenu/SideMenus.vue @@ -3,14 +3,14 @@
-
+
{{$t('side_task.novice_task')}}
- +
@@ -87,6 +87,11 @@ export default { this.taskStatus = true } this.totalTask = num + this.$refs.siteTask.taskData = this.taskData + + if(this.openBox){ + this.$refs.siteTask.open(); + } if (this.status) { this.$refs.siteTask.skipOpen(this.taskData,"/track/case/all"); @@ -97,13 +102,15 @@ export default { this.openBox = !this.openBox if(this.openBox || status === 2){ this.initTaskData(status) + }else{ + this.$refs.siteTask.open(); } - this.$refs.siteTask.open(); }, closeBox(status){ this.openBox = status }, closeNovice(status){ + this.openBox = false this.noviceStatus = status }, skipOpen(path){ diff --git a/framework/sdk-parent/frontend/src/components/sidemenu/components/SiteTask.vue b/framework/sdk-parent/frontend/src/components/sidemenu/components/SiteTask.vue index f79871e9f2..58b23d6b9f 100644 --- a/framework/sdk-parent/frontend/src/components/sidemenu/components/SiteTask.vue +++ b/framework/sdk-parent/frontend/src/components/sidemenu/components/SiteTask.vue @@ -1,6 +1,6 @@