你打包配置公共资源配置(参考:https://blog.csdn.net/weixin_40292626/article/details/84299324)或者你的router改成hash。history需要后端配合