|
@@ -83,7 +83,7 @@ export default {
|
|
return new Response(new Blob(), { status: 200 });
|
|
return new Response(new Blob(), { status: 200 });
|
|
}
|
|
}
|
|
console.error('Fetch failed for:', url, err);
|
|
console.error('Fetch failed for:', url, err);
|
|
- sendErrorLog(new Error(`Qiankun Fetch failed`), {
|
|
|
|
|
|
+ sendErrorLog(new Error(`Qiankun LOADING_SOURCE Fetch failed`), {
|
|
level: 'error',
|
|
level: 'error',
|
|
tags: {
|
|
tags: {
|
|
href: location.href,
|
|
href: location.href,
|
|
@@ -99,18 +99,18 @@ export default {
|
|
})
|
|
})
|
|
addGlobalUncaughtErrorHandler((event) => {
|
|
addGlobalUncaughtErrorHandler((event) => {
|
|
const isSubAppLoadError = event.type === 'error' && event.message.indexOf('died in status LOADING_SOURCE_CODE') !== -1
|
|
const isSubAppLoadError = event.type === 'error' && event.message.indexOf('died in status LOADING_SOURCE_CODE') !== -1
|
|
- sendErrorLog(new Error(`SubApp Load ERROR`), {
|
|
|
|
- level: 'error',
|
|
|
|
- tags: {
|
|
|
|
- href: location.href
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
commit('toggleLoading', false)
|
|
commit('toggleLoading', false)
|
|
if (isSubAppLoadError) {
|
|
if (isSubAppLoadError) {
|
|
commit('toggleAbnormal', {
|
|
commit('toggleAbnormal', {
|
|
type: true,
|
|
type: true,
|
|
message: state.tips.error
|
|
message: state.tips.error
|
|
})
|
|
})
|
|
|
|
+ sendErrorLog(new Error(`SubApp LOADING_SOURCE_CODE ERROR`), {
|
|
|
|
+ level: 'error',
|
|
|
|
+ tags: {
|
|
|
|
+ href: location.href
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
dispatch('syncModel', state.sharedModel)
|
|
dispatch('syncModel', state.sharedModel)
|