From 15c2a1bd58f6c889004ee149d5dc30d9cf55a2a4 Mon Sep 17 00:00:00 2001 From: jacky Date: Sun, 21 Apr 2024 13:32:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=87=E7=AD=BE=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tag.js | 24 ++++++ src/view/content/tag/index.vue | 145 +++++++++++++++++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100644 src/view/content/tag/index.vue diff --git a/src/api/tag.js b/src/api/tag.js index 0078065..aaa8b0d 100644 --- a/src/api/tag.js +++ b/src/api/tag.js @@ -10,3 +10,27 @@ export const getTagList = (data) => { data }) } + +// @Summary 新增 +// @Produce application/json +// @Param Object +// @Router /cms/tag/add [post] +export const addTag = (data) => { + return service({ + url: '/cms/tag/add', + method: 'post', + data + }) +} + +// @Summary 删除 +// @Produce application/json +// @Param ID int +// @Router /cms/tag/delete [delete] +export const deleteTag = (data) => { + return service({ + url: '/cms/tag/delete', + method: 'delete', + data + }) +} diff --git a/src/view/content/tag/index.vue b/src/view/content/tag/index.vue new file mode 100644 index 0000000..186b13f --- /dev/null +++ b/src/view/content/tag/index.vue @@ -0,0 +1,145 @@ + + +