manifest.json文件设置: "h5": { "router": { "base": "./", "mode": "history" }, } 按相对路径发行时路由模式强制为hash模式,不支持history模式(两者相悖)。 去掉"base": “./”,