调整接口的一些字段及接口名称

This commit is contained in:
xinjie
2022-11-16 16:18:59 +08:00
parent 6db7255ed3
commit e89f22cd8c
190 changed files with 164 additions and 162 deletions

View File

@@ -2,10 +2,10 @@ import request from '@/utils/request'
// 配置
export function getConfig() {
return request.get({ url: '/common/index/config' })
return request.get({ url: '/index/config' })
}
// 工作台主页
export function getWorkbench() {
return request.get({ url: '/common/index/console' })
return request.get({ url: '/index/console' })
}

View File

@@ -21,7 +21,7 @@ const axiosHooks: AxiosHooks = {
// 添加token
if (withToken) {
const token = getToken()
headers.token = token
headers['like-admin'] = token
}
// POST请求下如果无data则将params视为data
if (

View File

@@ -84,7 +84,9 @@ const handleDelete = (index: number) => {
// 设置备案信息
const handleSubmit = async () => {
await setCopyright(formData.value)
await setCopyright({
list: formData.value
})
feedback.msgSuccess('操作成功')
getData()
}