mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-16 16:42:50 +00:00
优化
This commit is contained in:
parent
e947a13b94
commit
fcdfcd531c
@ -8,7 +8,7 @@ export default {
|
|||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
const { router, route } = useCool();
|
const { router, route } = useCool();
|
||||||
const { menu } = useStore();
|
const { menu, app } = useStore();
|
||||||
|
|
||||||
// 是否可见
|
// 是否可见
|
||||||
const visible = ref(true);
|
const visible = ref(true);
|
||||||
@ -18,6 +18,11 @@ export default {
|
|||||||
if (url != route.path) {
|
if (url != route.path) {
|
||||||
router.push(url);
|
router.push(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 移动端点击收起左侧菜单
|
||||||
|
if (app.browser.isMini) {
|
||||||
|
app.fold(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 刷新菜单
|
// 刷新菜单
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user