u
This commit is contained in:
1 parent
7837b87959
commit
3026145786
7 files changed
+334
-106
No files matched your search
@@ -89,9 +89,9 @@ const handleClickMenuItem = (key: string) => {
|
||||
const handleClickSubMenuItem = (key: string) => {
|
||||
const index = openkeys.value.indexOf(key);
|
||||
if (index === -1) {
|
||||
openkeys.value.push(key); // 如果不包含就添加
|
||||
openkeys.value.push(key);
|
||||
} else {
|
||||
openkeys.value.splice(index, 1); // 如果包含就移除
|
||||
openkeys.value.splice(index, 1);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user