Results 2 comments of Quant

在子应用,增加publicPath配置,内容是主应用触发时的根路由,试试

> > 在子应用,增加publicPath配置,内容是主应用触发时的根路由,试试 > > ![image](https://user-images.githubusercontent.com/20253809/134444840-ec5e5e76-6a5c-4213-9003-a95bb940cb2d.png) > ![image](https://user-images.githubusercontent.com/20253809/134444876-53d656c7-7fbd-433a-b71f-748489477c83.png) > 无效 时间很久了,我也忘记怎么解决了,再提供下我的方案吧(我的主应用上purehtml,子应用是umi): 1、子应用入口文件处: __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__; window.zwfw_new = { bootstrap: (props) => { // eslint-disable-next-line no-console console.log('子应用初始化', props); return Promise.resolve(props); },...