Situation 1 Browser problem
The browser caches the previous version of the js file. The error caused by not requesting a new js file after the update version is updated. Just be sure to cache the browser.
router.onError((error) => {
// Prevent IE cache from finding js file
const pattern = /Loading chunk \d+ failed/g
const isChunkLoadFailed = error.message.match(pattern)
if (isChunkLoadFailed) {
location.reload()
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Situation 2ComponentsIntroduce the problem Appears under IE
Some strange variables are introduced into the component, such as some things under @babel
What I encountered was the introduction of strange things into the component of a new colleague
Just delete it
Situation 3 Use some syntax that IE does not support. It appears under IE
For example, pre-assertion expression, promise.anywait