更新前端域名状态更新接口
This commit is contained in:
@@ -23,13 +23,14 @@ export function fetchAvailableDomainList(query) {
|
||||
})
|
||||
}
|
||||
|
||||
export function updateEnableStatus(id, enable) {
|
||||
export function updateEnableStatus(id, enable, domain) {
|
||||
return request({
|
||||
url: '/domain/update/enable-status',
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id,
|
||||
enable: enable
|
||||
enable: enable,
|
||||
domain: domain,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@
|
||||
},
|
||||
handleModifyStatus(row, enable) {
|
||||
console.log('route', this.$route)
|
||||
updateEnableStatus(row.id, enable).then(response => {
|
||||
updateEnableStatus(row.id, enable, row.domain).then(response => {
|
||||
if (response.data.data.code === 0) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
|
||||
Reference in New Issue
Block a user