The reason is that the history mode is used HTML5 history mode | Vue router
I didn’t find a solution
So we changed the routing to hash mode
I use cli3
It was
import {createRouter, createWebHistory} from 'vue-router'
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes
})
Change to
import {createRouter, createWebHashHistory} from 'vue-router'
const router = createRouter({
model:'hash',
history: createWebHashHistory(),
routes
})
It’s normal after modification
Read More:
- After Vue is packaged, a blank page appears, an error is reported in the resource request, and there is no error handling scheme
- When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.
- It will appear as soon as it is turned on BTServer.exe -Application error (0xc0150002)
- After Java application is deployed in Linux environment, Chinese is displayed as square solution
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- “XXXXXX is a” namespace “, but here it is used as a” type “
- It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond applicat
- When C language refers to a user-defined type as a parameter, an error segmentation fault is reported
- When the spring MVC project is running on idea, an error is reported when the controller is a null pointer
- When the mybatis field contains an expression, an error is reported when it is stored in the database
- An error is reported when passing data pages using Ajax: Vue is not defined
- When react devtools is enabled, an error is reported for the project
- The Vue project does not install node sass and an error is reported
- The web project removal server reports an error, and the web project in eclipse cannot be automatically deployed to Tomcat
- An error is reported when the laptop is turned on: image failed to verify with * access denied* press any key to continue
- An error of 500 is reported when an item is assigned to a role
- It is invalid to submit the content directly after pasting it on the mobile terminal of Vue HTML5 editor
- An error is reported when Clickhouse is started. The error log information is: structure needs cleaning
- Research on Maven management of Java project pom.xml The jar package error is reported, but the project is running normally
- An error was reported on the command line of Vue when it first wrote a small project: expected indentation of 4 spaces but found 6