解决提示框遮挡问题,优化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
@@ -47,7 +47,10 @@ export default {
return;
}
userApi.addAgent(this.wisdomBodyName, (res) => {
this.$message.success('添加成功');
this.$message.success({
message: '添加成功',
showClose: true
});
this.$emit('confirm', res);
this.$emit('update:visible', false);
this.wisdomBodyName = "";
@@ -20,12 +20,12 @@
<div class="settings-btn" @click="handleConfigure">
配置角色
</div>
<div class="settings-btn">
声纹识别
</div>
<div class="settings-btn">
历史对话
</div>
<!-- <div class="settings-btn">-->
<!-- 声纹识别-->
<!-- </div>-->
<!-- <div class="settings-btn">-->
<!-- 历史对话-->
<!-- </div>-->
<div class="settings-btn" @click="handleDeviceManage">
设备管理
</div>
+10 -6
View File
@@ -88,7 +88,7 @@ export default {
methods: {
goHome() {
// 跳转到首页
this.$router.push('/')
this.$router.push('/home')
},
goUserManagement() {
this.$router.push('/user-management')
@@ -135,13 +135,16 @@ export default {
try {
// 调用 Vuex 的 logout action
await this.logout();
this.$message.success('退出登录成功');
this.$router.push('/login');
this.$message.success({
message:'退出登录成功',
showClose:true
});
} catch (error) {
console.error('退出登录失败:', error);
this.$message.error('退出登录失败,请重试');
this.$message.error({
message:'退出登录失败,请重试',
showClose:true
});
}
},
@@ -203,6 +206,7 @@ export default {
}
.equipment-management {
padding: 0 9px;
width: 82px;
height: 24px;
border-radius: 12px;