fix: 修复访问时提示 Invalid Host header 问题

Signed-off-by: mouyong <my24251325@gmail.com>
This commit is contained in:
mouyong 2022-09-05 11:57:07 +00:00 committed by Gitee
parent 392ae673f3
commit 9ec83a3fb9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ module.exports = defineConfig({
//开发服务,build后的生产模式还需nginx代理
devServer: {
allowedHosts: 'all',
open: false, //运行后自动打开浏览器
port: process.env.VUE_APP_PORT, //挂载端口
proxy: {