webpack5中的决绝方式
解决方式:vue.config.js文件中加入
devServer:{
historyApiFallback: true,
allowedHosts: "all",
}
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave:false,
devServer:{
historyApiFallback: true,
allowedHosts: "all",
}
})