You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
请教大家,在文档中仅给出了
modules/
路径下定义动态路由的写法,如果动态路由列表是由接口获取到的,如何再次定义左侧菜单项和路由项呢?例如,
api
中定义了获取menu
的接口,假设是['a', 'b', 'c']
,那么,后续应当在什么位置添加routes?使得菜单项能够更新?目前尝试定义了
pinia
的menuStore
来存储接口返回的目录列表,但是不清楚在哪里进行动态的路由添加?是在路由守卫中?还是在App.vue
中?Beta Was this translation helpful? Give feedback.
All reactions