- 软件下载
- 注册登录
- 实名认证
- 设置映射
- 修改vue.config.js:
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
historyApiFallback: true,
disableHostCheck: true, //allowedHosts:"all"
host:'0.0.0.0',
port:'8090',
client: {
webSocketURL: 'ws://0.0.0.0:6081/ws',
},
headers: {
'Access-Control-Allow-Origin': '*',
}
},
})