From 442bbf922e6dfcf92d916c47ae92920c0b29cd24 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 19 Feb 2025 16:42:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=A0=8F=E6=B7=BB=E5=8A=A0=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=8C=85=E6=8B=AC=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E3=80=81=E5=88=A0=E9=99=A4=E5=92=8C=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tag.js | 22 ++ src/layout/components/Sidebar/index.vue | 277 ++++++++++++++++++++++-- 2 files changed, 284 insertions(+), 15 deletions(-) diff --git a/src/api/tag.js b/src/api/tag.js index 5ea073e..50021cd 100644 --- a/src/api/tag.js +++ b/src/api/tag.js @@ -39,6 +39,28 @@ export default { return qs.stringify(params, { arrayFormat: 'repeat' }) } }) + }, + // 修改标签排序 + setTagSort: function(data) { + return request({ + url: '/tag/sort', + method: 'post', + data + }) + }, + deleteFileTag: function(params) { + return request({ + url: '/deleteTag', + method: 'delete', + params + }) + }, + updateFileTag: function(params) { + return request({ + url: '/updateTag', + method: 'put', + params + }) } } diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 16c0049..7addeea 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -1,5 +1,26 @@