From 4af3d69cfc6903eaecef4377356f3d09334afd2e Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 2 Aug 2021 15:24:09 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E5=85=AC=E5=85=B1=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E6=9C=AA=E5=90=AF=E7=94=A8=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E4=BF=9D=E6=8A=A4=E5=87=BA=E7=8E=B0=E7=A9=BA=E7=99=BD=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/dataease/auth/filter/F2CLinkFilter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/dataease/auth/filter/F2CLinkFilter.java b/backend/src/main/java/io/dataease/auth/filter/F2CLinkFilter.java index 8cca8edbf7..94a43bce52 100644 --- a/backend/src/main/java/io/dataease/auth/filter/F2CLinkFilter.java +++ b/backend/src/main/java/io/dataease/auth/filter/F2CLinkFilter.java @@ -34,10 +34,14 @@ public class F2CLinkFilter extends AnonymousFilter { String id = resourceId.asString(); PanelLink panelLink = LinkUtil.queryLink(id); if (ObjectUtil.isEmpty(panelLink)) return false; + String pwd; if (!panelLink.getEnablePwd()) { panelLink.setPwd("dataease"); + pwd = panelLink.getPwd(); + }else { + pwd = RsaUtil.decryptByPrivateKey(RsaProperties.privateKey, panelLink.getPwd()); } - return JWTUtils.verifyLink(link_token, id, RsaUtil.decryptByPrivateKey(RsaProperties.privateKey, panelLink.getPwd())); + return JWTUtils.verifyLink(link_token, id, pwd); }catch (Exception e) { LogUtil.error(e); } From 7c4a1c596186e81f03edc09452a9b210d413d15e Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 2 Aug 2021 15:37:47 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E5=B7=B2=E8=AF=BB?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/msg/readed.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/msg/readed.vue b/frontend/src/views/msg/readed.vue index f573391921..b3b9e40c00 100644 --- a/frontend/src/views/msg/readed.vue +++ b/frontend/src/views/msg/readed.vue @@ -8,7 +8,9 @@ Date: Mon, 2 Aug 2021 15:58:03 +0800 Subject: [PATCH 3/4] =?UTF-8?q?refactor:=20=E8=A7=86=E5=9B=BE=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=8F=B0=E6=8A=A5=E9=94=99=EF=BC=9Btree=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=90=8E=E5=8F=B3=E4=BE=A7=E7=95=8C=E9=9D=A2=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E5=8E=9F=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/group/Group.vue | 3 +-- frontend/src/views/chart/view/ChartEdit.vue | 26 ++++++++++----------- frontend/src/views/dataset/group/Group.vue | 1 - 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/frontend/src/views/chart/group/Group.vue b/frontend/src/views/chart/group/Group.vue index 0667f01606..d426e0b8e6 100644 --- a/frontend/src/views/chart/group/Group.vue +++ b/frontend/src/views/chart/group/Group.vue @@ -315,7 +315,6 @@