Merge branch '2.0-bugfix' into dev
This commit is contained in:
commit
84e4b790d1
|
@ -280,7 +280,8 @@ export function filterAsyncRouter(asyncRouterMap: any, parentCode = '', level =
|
||||||
icon: route.icon,
|
icon: route.icon,
|
||||||
title: route.name,
|
title: route.name,
|
||||||
hideInMenu: route.isShow === false,
|
hideInMenu: route.isShow === false,
|
||||||
buttons: route.buttons?.map((b: any) => b.id) || []
|
buttons: route.buttons?.map((b: any) => b.id) || [],
|
||||||
|
isApp: hasAppId,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -157,19 +157,17 @@ const defualtDataSource: any = ref(_.cloneDeep(root));
|
||||||
const defualtParams = {
|
const defualtParams = {
|
||||||
paging: false,
|
paging: false,
|
||||||
sorts: [{ name: 'createTime', order: 'desc' }],
|
sorts: [{ name: 'createTime', order: 'desc' }],
|
||||||
terms: [
|
terms: !!channelId ? [
|
||||||
{
|
{
|
||||||
terms: !!channelId
|
terms: [
|
||||||
? [
|
|
||||||
{
|
{
|
||||||
column: 'channelId',
|
column: 'channelId',
|
||||||
value: channelId,
|
value: channelId,
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
: [],
|
|
||||||
type: 'and',
|
type: 'and',
|
||||||
},
|
},
|
||||||
],
|
] : [],
|
||||||
};
|
};
|
||||||
const params = ref();
|
const params = ref();
|
||||||
|
|
||||||
|
|
|
@ -38,10 +38,14 @@ const handle = async (appId: string, url: string) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
const params = route.path.split('/')?.[1];
|
const matchedItem: any = route.matched?.[0]
|
||||||
const url = route.path.split('/').slice(2).join('/');
|
if (matchedItem?.meta?.isApp) {
|
||||||
handle(params, url);
|
const params = route.path.split('/')?.[1];
|
||||||
|
const url = route.path.split('/').slice(2).join('/');
|
||||||
|
handle(params, url);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue