Commit 4612f620 by 前端

Merge branch 'change_map' into 'master'

上线合并

See merge request !38
2 parents 959995fe 22931d38
Pipeline #45 for 4612f620 failed in 0 seconds
/*
* @Description:
* @Author: huyue
* @Date: 2024-12-03 18:10:17
* @LastEditors: huyue
* @LastEditTime: 2024-12-05 20:50:25
*/
import { registerMicroApps, start, addGlobalUncaughtErrorHandler, setDefaultMountApp, initGlobalState } from 'qiankun'; import { registerMicroApps, start, addGlobalUncaughtErrorHandler, setDefaultMountApp, initGlobalState } from 'qiankun';
import store from '@/store'; import store from '@/store';
import router from '@/router'; import router from '@/router';
...@@ -64,7 +71,26 @@ const qianKunStart = (config, baseURL) => { ...@@ -64,7 +71,26 @@ const qianKunStart = (config, baseURL) => {
setDefaultMountApp(defaultApp); setDefaultMountApp(defaultApp);
//start({ singular: false }); //start({ singular: false });
start() start(
{
prefetch: false,
singular: true,
strictStyleIsolation: false,
fetch: window.fetch,
excludeAssetFilter: item => item.includes('api.map.baidu')
// excludeAssetFilter: (assetUrl) => {
// console.log("assetUrl", assetUrl);
// const whiteList = [];
// const whiteWords = ["api.map.baidu"];
// if (whiteList.includes(assetUrl)) {
// return true;
// }
// return whiteWords.some((w) => {
// return assetUrl.includes(w);
// });
// }
}
)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!