From f4380d56a320d3a0b9ba631f3db1330605571450 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Mon, 20 Jan 2025 14:24:32 +0800 Subject: [PATCH 01/66] =?UTF-8?q?fix:=20:bug:=20=E5=88=B7=E6=96=B0token?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=80=82=E9=85=8D=E5=90=8E=E7=AB=AF=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/auth/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/api/auth/index.ts b/src/api/auth/index.ts index ec95620c..64fb97b2 100644 --- a/src/api/auth/index.ts +++ b/src/api/auth/index.ts @@ -22,19 +22,17 @@ const AuthAPI = { /** 刷新 token 接口*/ refreshToken(refreshToken: string) { - const formData = new FormData(); - formData.append("refreshToken", refreshToken); return request({ url: `${AUTH_BASE_URL}/refresh-token`, method: "post", - data: formData, + params: { refreshToken: refreshToken }, headers: { Authorization: "no-auth", }, }); }, - /** 注销接口 */ + /** 注销登录接口 */ logout() { return request({ url: `${AUTH_BASE_URL}/logout`, From b375352c227541db7c2475d60930acc05c4f5751 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Wed, 22 Jan 2025 12:48:12 +0800 Subject: [PATCH 02/66] =?UTF-8?q?refactor:=20:recycle:=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20wangeditor-next=20=E6=9B=BF=E6=8D=A2=20wangeditor?= =?UTF-8?q?=20=EF=BC=8C=E9=87=8D=E6=9E=84=E7=AE=80=E5=8C=96=E5=AF=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91=E5=99=A8=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +- src/components/WangEditor/index.vue | 88 +++++++++++++++++------------ src/views/demo/wang-editor.vue | 10 +++- src/views/system/notice/index.vue | 9 +-- 4 files changed, 61 insertions(+), 50 deletions(-) diff --git a/package.json b/package.json index ff1502d3..4b20ea47 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ "@element-plus/icons-vue": "^2.3.1", "@stomp/stompjs": "^7.0.0", "@vueuse/core": "^10.11.1", - "@wangeditor/editor": "^5.1.23", - "@wangeditor/editor-for-vue": "5.1.10", + "@wangeditor-next/editor": "^5.6.29", + "@wangeditor-next/editor-for-vue": "^5.1.14", "axios": "^1.7.9", "codemirror": "^5.65.18", "codemirror-editor-vue3": "^2.8.0", diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index f79062de..47f290d8 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -1,80 +1,94 @@ + + - - diff --git a/src/views/demo/wang-editor.vue b/src/views/demo/wang-editor.vue index 67db92d0..560f0ecb 100644 --- a/src/views/demo/wang-editor.vue +++ b/src/views/demo/wang-editor.vue @@ -1,8 +1,8 @@