fix: 修复内部应用页面跳转后显示错误提示的问题
This commit is contained in:
parent
a44edbb036
commit
816cadbc3b
|
@ -280,7 +280,8 @@ export function filterAsyncRouter(asyncRouterMap: any, parentCode = '', level =
|
|||
icon: route.icon,
|
||||
title: route.name,
|
||||
hideInMenu: route.isShow === false,
|
||||
buttons: route.buttons?.map((b: any) => b.id) || []
|
||||
buttons: route.buttons?.map((b: any) => b.id) || [],
|
||||
isApp: hasAppId,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -38,10 +38,14 @@ const handle = async (appId: string, url: string) => {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
watchEffect(() => {
|
||||
const params = route.path.split('/')?.[1];
|
||||
const url = route.path.split('/').slice(2).join('/');
|
||||
handle(params, url);
|
||||
const matchedItem: any = route.matched?.[0]
|
||||
if (matchedItem?.meta?.isApp) {
|
||||
const params = route.path.split('/')?.[1];
|
||||
const url = route.path.split('/').slice(2).join('/');
|
||||
handle(params, url);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue