From 7e6749e9fb48ff082002af880e1cafc477083773 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 21 May 2021 11:04:41 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E7=9B=98=E7=BC=96?= =?UTF-8?q?=E8=BE=91=20=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/edit/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 3467328e9f..fd9c585d51 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -241,7 +241,7 @@ export default { showPanel(type) { debugger if (this.showIndex === -1 || this.showIndex === type) { - this.show = !this.show + this.$nextTick(() => (this.show = !this.show)) } this.showIndex = type }, @@ -254,6 +254,7 @@ export default { // 点击样式按钮 排除 const stick = evt.target.closest('.el-icon-magic-stick') if (!parent && !self && !stick) { + debugger this.show = false window.removeEventListener('click', this.closeSidebar) this.showIndex = -1 @@ -371,6 +372,7 @@ export default { this.openFilterDiolog() }, closeLeftPanel() { + debugger this.show = false // this.beforeDestroy() } From c38bc7f3d8054833b4760f74a2c53e7255335e83 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 21 May 2021 11:19:15 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E9=A2=84=E8=A7=88=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/permission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/permission.js b/frontend/src/permission.js index ba806b831f..309e89e800 100644 --- a/frontend/src/permission.js +++ b/frontend/src/permission.js @@ -29,7 +29,7 @@ router.beforeEach(async(to, from, next) => { NProgress.done() } else { const hasGetUserInfo = store.getters.name - if (hasGetUserInfo) { + if (hasGetUserInfo || to.path.indexOf('/preview/') > -1) { next() store.dispatch('permission/setCurrentPath', to.path) } else { From 955a0ec6bc533086bce0aae6dcf90a58119bb2e4 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 21 May 2021 12:19:32 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20=E6=97=B6=E9=97=B4=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8F=82=E6=95=B0=E6=94=B9=E4=B8=BA=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/widget/DeWidget/DeDate.vue | 41 +++++++------------ frontend/src/utils/index.js | 40 ++++++++++++++++++ 2 files changed, 55 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index 393f5db8a4..d6ebba12cd 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -13,7 +13,7 @@