vue.config.js 配置 publicPath module.exports = { publicPath: 'portal' } router base: '/portal', mode: 'history' // hash 都可以