默认触发列表第一项的点击
This commit is contained in:
parent
cc28570a29
commit
9a917c89ce
@ -39,8 +39,12 @@ export default () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
getMenuList()
|
await getMenuList();
|
||||||
|
const firstMenuItem = menuList.value[0]?.children?.[0];
|
||||||
|
if (firstMenuItem) {
|
||||||
|
handleMenuClick(firstMenuItem);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -5,7 +5,7 @@ const routes = [
|
|||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
redirect: '/cockpit',
|
component: () => import('../views/Home.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/cockpit',
|
path: '/cockpit',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user