解决提示框遮挡问题,优化UserManagement和HeaderBar布局,导航栏重复点击警告,退出跳转页面的优化

This commit is contained in:
Ran_Chen
2025-04-03 15:44:41 +08:00
parent ad0493f8a0
commit 7550ac327e
9 changed files with 267 additions and 328 deletions
+8 -2
View File
@@ -109,10 +109,16 @@ export default {
import('@/apis/module/agent').then(({ default: userApi }) => {
userApi.deleteAgent(agentId, (res) => {
if (res.data.code === 0) {
this.$message.success('删除成功');
this.$message.success({
message: '删除成功',
showClose: true
});
this.fetchAgentList(); // 刷新列表
} else {
this.$message.error(res.data.msg || '删除失败');
this.$message.error({
message: res.data.msg || '删除失败',
showClose: true
});
}
});
});