修改的接口文件

This commit is contained in:
yis 2025-08-20 15:41:32 +08:00
parent 64d5b4812f
commit fc06113b16
2 changed files with 9 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export function del(ids) {
}
export function edit(data) {
if(data.password) data.password = encrypt(data.password)
if (data.password) data.password = encrypt(data.password)
return request({
url: 'api/emEmployees',
method: 'put',
@ -57,5 +57,12 @@ export function getDetail(id) {
})
}
export function getAllPilots() {
return request({
url: 'aerocraftAdminApi/api/emEmployees/all',
method: 'get'
})
}
export default { add, edit, del, getList, getDetail }

View File

@ -30,7 +30,7 @@ export function updateRoute(data) {
// 全部路线
export function getAllRoutes(params) {
return request({
url: 'cpRoute/all',
url: 'aerocraftAdminApi/cpRoute/all',
method: 'get',
params
})