更新前端域名状态更新接口

This commit is contained in:
suxiang
2024-08-25 16:24:57 +08:00
parent 4b52d7fafe
commit c8f025290c
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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: '操作成功',