花生壳官网 : https://hsk.oray.com/
创建映射
映射类型选择https,因为我们用的是浏览器网页版
填写自己内网主机IP地址
查看自己ip地址方法
vue.config.js 文件 devServer
vue 8080端口配置
devServer: {
host:'0.0.0.0',
allowedHosts:"all", // 解决Invalid Host header
// open:true,
port:'8080',
client:{
webSocketURL:'ws://0.0.0.0:8080/ws' // 解决console中报错:WebSocketClient
}
}
yylAdminWeb
disableHostCheck: true,
devServer: {
disableHostCheck: true,
port: port,
open: true,
overlay: {
warnings: false,
errors: true
}
},