yarn install
yarn run serve
yarn run build
yarn run lint
重要是的是在vue.config.js中添加
configureWebpack: {
devServer: {
historyApiFallback: {
rewrites: [
{ from: /^\/index\/.*$/, to: '/index.html'},
{from: /^\/print\/.*$/, to: '/print.html'}
]
}
}
}