vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.75k stars 6.33k forks source link

Error running refresh in History mode after upgrading to vue-cli4.5.13 #6504

Open qwj12345 opened 3 years ago

qwj12345 commented 3 years ago

Version

4.5.13

Environment info

The company environment could not copy the data out. Several key environments:node 8.9.1; npm5.5.1; vue-loader13.3.1; vue-cli4.5.13;vuerouter:3.5.1;  vue:2.6.12.

Steps to reproduce

The original project was built using vue-cli2, and the router is also in history mode. There will be no problem when running refresh on local npm serve, but after using vue-cli4.5.13 and using history mode refresh, The local npm serve page displays {" code ": 10006,"message":" user not logged in "}, which should be the message returned by the interface.

What is expected?

The page displays normally after refresh.

What is actually happening?

When refreshed, the JSON data is displayed.


May I ask whether this needs interface background processing or front-end where to configure something to go.

qwj12345 commented 3 years ago

QQ图片20210531153910