mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix: 修复代码生成异常提示
This commit is contained in:
@ -93,6 +93,9 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
|
||||
|
||||
function parseRouter(route: ElegantConstRoute, parent?: ElegantConstRoute) {
|
||||
if (authRouteMode.value === 'dynamic') {
|
||||
if (route.component === 'Layout' && route.path === '/' && route.children?.length) {
|
||||
Object.assign(route, route.children[0]);
|
||||
}
|
||||
// @ts-expect-error no query field
|
||||
const query = route.query ? String(route.query) : undefined;
|
||||
route.path = route.path.startsWith('//') ? route.path.substring(1) : route.path;
|
||||
|
Reference in New Issue
Block a user