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
exportfunctionformatAppURL(url: string|null,appName: string|null=null): string{if(!isString(url)||!url)return''try{const{ origin, pathname, search }=createURL(addProtocol(url),(window.rawWindow||window).location.href)// If it ends with .html/.node/.php/.net/.etc, don’t need to add /if(/\.(\w+)$/.test(pathname)){return`${origin}${pathname}${search}`}constfullPath=`${origin}${pathname}/`.replace(/\/\/$/,'/')return/^https?:\/\//.test(fullPath) ? `${fullPath}${search}` : ''}catch(e){logError(e,appName)return''}}
希望可以移除这个逻辑或者增加配置项允许不追加‘/’
上传截图
请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。
复现仓库
请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。
环境信息
micro-app版本:1.0.0-rc.2
主应用前端框架&版本:react 18.2.0
子应用前端框架&版本:react 18.2.0
构建工具&版本:vite 4.5.0
The text was updated successfully, but these errors were encountered:
问题描述
复现步骤
上传截图
复现仓库
环境信息
The text was updated successfully, but these errors were encountered: