From d622111f531fe49d1b5875bdd4e67fea16fe7372 Mon Sep 17 00:00:00 2001 From: tk Date: Fri, 6 Dec 2024 17:19:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=89=8D=E7=AB=AFapijs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/admin/src/api/sys/job.js | 11 ----------- src/frontend/admin/src/api/sys/loginlog.js | 11 ----------- src/frontend/admin/src/api/sys/sitemsg.js | 11 ----------- src/frontend/admin/src/api/tpl/example.js | 11 +++++++++++ 4 files changed, 11 insertions(+), 33 deletions(-) diff --git a/src/frontend/admin/src/api/sys/job.js b/src/frontend/admin/src/api/sys/job.js index 8df4cb5e..611c8cdc 100644 --- a/src/frontend/admin/src/api/sys/job.js +++ b/src/frontend/admin/src/api/sys/job.js @@ -82,17 +82,6 @@ export default { }, }, - /** - * 计划作业是否存在 - */ - exist: { - url: `${config.API_URL}/api/sys/job/exist`, - name: `计划作业是否存在`, - post: async function (data = {}, config = {}) { - return await http.post(this.url, data, config) - }, - }, - /** * 导出计划作业 */ diff --git a/src/frontend/admin/src/api/sys/loginlog.js b/src/frontend/admin/src/api/sys/loginlog.js index fb82c38a..4a978f8b 100644 --- a/src/frontend/admin/src/api/sys/loginlog.js +++ b/src/frontend/admin/src/api/sys/loginlog.js @@ -49,17 +49,6 @@ export default { }, }, - /** - * 登录日志是否存在 - */ - exist: { - url: `${config.API_URL}/api/sys/login.log/exist`, - name: `登录日志是否存在`, - post: async function (data = {}, config = {}) { - return await http.post(this.url, data, config) - }, - }, - /** * 导出登录日志 */ diff --git a/src/frontend/admin/src/api/sys/sitemsg.js b/src/frontend/admin/src/api/sys/sitemsg.js index bfbebdef..9abe04f9 100644 --- a/src/frontend/admin/src/api/sys/sitemsg.js +++ b/src/frontend/admin/src/api/sys/sitemsg.js @@ -60,17 +60,6 @@ export default { }, }, - /** - * 站内信是否存在 - */ - exist: { - url: `${config.API_URL}/api/sys/site.msg/exist`, - name: `站内信是否存在`, - post: async function (data = {}, config = {}) { - return await http.post(this.url, data, config) - }, - }, - /** * 导出站内信 */ diff --git a/src/frontend/admin/src/api/tpl/example.js b/src/frontend/admin/src/api/tpl/example.js index 384888a9..22829ade 100644 --- a/src/frontend/admin/src/api/tpl/example.js +++ b/src/frontend/admin/src/api/tpl/example.js @@ -49,6 +49,17 @@ export default { }, }, + /** + * 编辑示例 + */ + edit: { + url: `${config.API_URL}/api/tpl/example/edit`, + name: `编辑示例`, + post: async function (data = {}, config = {}) { + return await http.post(this.url, data, config) + }, + }, + /** * 获取单个示例 */