report an error under ie9
[nuxt] the Error while initializing app TypeError: object does not support the "replaceState" property or method
so that subsequent operations cannot be completed under ie
report an error under ie9
[nuxt] the Error while initializing app TypeError: object does not support the "replaceState" property or method
so that subsequent operations cannot be completed under ie
this is due to the fact that the default route pattern of nuxt is history, which is problematic in ie9. You need to add
if (process.client) {
window.history.replaceState = window.history.replaceState | | function () {}
} to solve
. After I change router.js, run dev it will automatically revert to its previous appearance. The added code disappears
Hello. Have you solved your problem? I also encounter the same problem, please guide
Previous: How does vue create global variables
problem description I m going to get the token parameters stored in cookie in middleware No problem was found in the local test, but after uploading to the official server for a period of time, I found that some users had the same token . after ch...