fix: iframe组件优化没有参数时,url格式

This commit is contained in:
XieYongHong 2023-10-30 11:28:36 +08:00
parent ff98143f30
commit 5dd01e5863
1 changed files with 7 additions and 2 deletions

View File

@ -28,9 +28,14 @@ const handle = async (appId: string, url: string) => {
if (result.page.parameters) {
const params = new URLSearchParams()
result.page.parameters.forEach((item: any) => {
if (item?.key) {
params.set(item.key,item.value)
}
})
menuUrl += `?${params.toString()}`
const urlParams = params.toString()
if (urlParams) {
menuUrl += `?${urlParams}`
}
}
if (result.provider === 'internal-standalone') {