这个情况是因为vue的路由出问题了。 采用hash模式即可。 详细请了解: vue router 的两种路由模式hash与history的区别_vue hisotry-CSDN博客 vue默认是是hash