From ff53ed6060ac67af2cd0bc59309c0a46332b9b49 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Tue, 8 Oct 2024 01:02:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=85=AC=E5=91=8A=E3=80=81=E5=AD=97=E5=85=B8=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=E5=92=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/notice.ts | 2 +- src/components/Dictionary/DictLabel.vue | 54 +++- src/components/Dictionary/index.vue | 2 +- src/components/Notice/index.vue | 242 +++++++++++++----- src/layout/components/AppMain/index.vue | 8 +- src/main.ts | 2 - src/plugins/index.ts | 9 +- src/utils/requestCache.ts | 4 + src/utils/{socket.ts => websocket.ts} | 59 +---- src/views/dashboard/index.vue | 119 +++------ src/views/demo/curd/config/content2.ts | 4 +- src/views/demo/websocket.vue | 8 +- src/views/system/dict/data.vue | 20 +- .../system/notice/components/NoticeDetail.vue | 9 +- src/views/system/notice/index.vue | 36 ++- src/views/system/notice/my-notice.vue | 26 +- src/views/system/role/index.vue | 4 +- 18 files changed, 341 insertions(+), 269 deletions(-) create mode 100644 src/utils/requestCache.ts rename src/utils/{socket.ts => websocket.ts} (50%) diff --git a/package.json b/package.json index 95752fdb..7c0d9848 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-element-admin", - "version": "2.16.0", + "version": "2.16.1", "private": true, "type": "module", "scripts": { diff --git a/src/api/notice.ts b/src/api/notice.ts index a442cc0e..9f3b5355 100644 --- a/src/api/notice.ts +++ b/src/api/notice.ts @@ -113,7 +113,7 @@ class NoticeAPI { /** 获取我的通知分页列表 */ static getMyNoticePage(queryParams?: NoticePageQuery) { return request>({ - url: `${NOTICE_BASE_URL}/my/page`, + url: `${NOTICE_BASE_URL}/my-page`, method: "get", params: queryParams, }); diff --git a/src/components/Dictionary/DictLabel.vue b/src/components/Dictionary/DictLabel.vue index 000c2212..84c26f71 100644 --- a/src/components/Dictionary/DictLabel.vue +++ b/src/components/Dictionary/DictLabel.vue @@ -1,6 +1,6 @@