From 4f463dcbb38ec03d43d70c0da7414cd3afc7d027 Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Fri, 19 Dec 2025 11:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/system.ts | 3 + src/api/model/tools.ts | 13 ++- src/layout/components/attach.vue | 159 +++++++++++++++++-------------- src/layout/components/msg.vue | 40 ++++++-- src/views/system/post/index.vue | 2 +- 5 files changed, 137 insertions(+), 80 deletions(-) diff --git a/src/api/model/system.ts b/src/api/model/system.ts index 83aff4c..659dc93 100644 --- a/src/api/model/system.ts +++ b/src/api/model/system.ts @@ -266,5 +266,8 @@ export default { remove: async function (data = {}) { return await http.delete("message/remove", data); }, + clear: async function (data = {}) { + return await http.delete("message/clear", data); + }, }, } diff --git a/src/api/model/tools.ts b/src/api/model/tools.ts index 28710c2..c1ce509 100644 --- a/src/api/model/tools.ts +++ b/src/api/model/tools.ts @@ -39,5 +39,16 @@ export default { export: async function (data = {}) { return await http.get("file/export", data); }, - } + }, + attachment: { + list: async function (data = {}) { + return await http.get("attachment/list", data); + }, + del: async function (data = {}) { + return await http.delete("attachment/del", data); + }, + clear: async function (data = {}) { + return await http.delete("attachment/clear", data); + }, + }, } diff --git a/src/layout/components/attach.vue b/src/layout/components/attach.vue index ef4d6bf..6fab7a8 100644 --- a/src/layout/components/attach.vue +++ b/src/layout/components/attach.vue @@ -1,41 +1,44 @@