mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-04-20 05:02:50 +08:00
refactor: ♻️ 生成前端apijs
This commit is contained in:
parent
c2a2b27afd
commit
d622111f53
@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* 导出计划作业
|
||||
*/
|
||||
|
@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* 导出登录日志
|
||||
*/
|
||||
|
@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* 导出站内信
|
||||
*/
|
||||
|
@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取单个示例
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user