fix(operator): fix operator edit issue
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m51s

This commit is contained in:
sexygoat
2026-04-10 14:00:21 +08:00
parent 9a6f085cde
commit 2b3119c549
53 changed files with 547 additions and 418 deletions

View File

@@ -516,7 +516,7 @@
tableData.value = data.items
pagination.total = data.total
} catch (error) {
ElMessage.error('加载配置列表失败')
console.log('加载配置列表失败')
} finally {
loading.value = false
}
@@ -594,7 +594,7 @@
formRef.value?.clearValidate()
})
} catch (error) {
ElMessage.error('获取配置详情失败')
console.log('获取配置详情失败')
}
}
@@ -605,7 +605,7 @@
ElMessage.success(newStatus === 1 ? '已启用' : '已禁用')
await loadData()
} catch (error) {
ElMessage.error('状态更新失败')
console.log('状态更新失败')
}
}
@@ -622,7 +622,7 @@
await loadData()
} catch (error) {
if (error !== 'cancel') {
ElMessage.error('删除失败')
console.log('删除失败')
}
}
}
@@ -657,7 +657,7 @@
dialogVisible.value = false
await loadData()
} catch (error) {
ElMessage.error(dialogType.value === 'create' ? '创建失败' : '更新失败')
console.log(dialogType.value === 'create' ? '创建失败' : '更新失败')
}
})
}