mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
补充修改
This commit is contained in:
parent
13ae5e3ade
commit
1ec8f639cb
1 changed files with 11 additions and 0 deletions
|
|
@ -269,6 +269,7 @@
|
||||||
style="width: 0px; overflow: hidden"
|
style="width: 0px; overflow: hidden"
|
||||||
:show-all-levels="false"
|
:show-all-levels="false"
|
||||||
@change="handleCascaderChange"
|
@change="handleCascaderChange"
|
||||||
|
@visible-change="handleUserMenuVisibleChange"
|
||||||
ref="userCascader"
|
ref="userCascader"
|
||||||
>
|
>
|
||||||
<template slot-scope="{ data }">
|
<template slot-scope="{ data }">
|
||||||
|
|
@ -681,6 +682,16 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 处理用户菜单可见性变化
|
||||||
|
handleUserMenuVisibleChange(visible) {
|
||||||
|
this.userMenuVisible = visible;
|
||||||
|
|
||||||
|
// 如果菜单关闭了,也要清空选择值
|
||||||
|
if (!visible) {
|
||||||
|
this.completeResetCascader();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// 使用 mapActions 引入 Vuex 的 logout action
|
// 使用 mapActions 引入 Vuex 的 logout action
|
||||||
...mapActions(["logout"]),
|
...mapActions(["logout"]),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue