mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 23:23:55 +08:00
补充修改
This commit is contained in:
@@ -269,6 +269,7 @@
|
||||
style="width: 0px; overflow: hidden"
|
||||
:show-all-levels="false"
|
||||
@change="handleCascaderChange"
|
||||
@visible-change="handleUserMenuVisibleChange"
|
||||
ref="userCascader"
|
||||
>
|
||||
<template slot-scope="{ data }">
|
||||
@@ -681,6 +682,16 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
// 处理用户菜单可见性变化
|
||||
handleUserMenuVisibleChange(visible) {
|
||||
this.userMenuVisible = visible;
|
||||
|
||||
// 如果菜单关闭了,也要清空选择值
|
||||
if (!visible) {
|
||||
this.completeResetCascader();
|
||||
}
|
||||
},
|
||||
|
||||
// 使用 mapActions 引入 Vuex 的 logout action
|
||||
...mapActions(["logout"]),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user