From 100252a253263321873e79d43dff94e19defe353 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期三, 22 二月 2023 18:06:52 +0800
Subject: [PATCH] 完善语音对讲
---
web_src/config/index.js | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/web_src/config/index.js b/web_src/config/index.js
index e6c0f6c..fc0aa1f 100644
--- a/web_src/config/index.js
+++ b/web_src/config/index.js
@@ -8,25 +8,34 @@
dev: {
// Paths
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
+ assetsSubDirectory: './static',
+ assetsPublicPath: './',
proxyTable: {
'/debug': {
- target: 'http://localhost:18080',
+ target: 'https://default.wvp-pro.cn:18080',
changeOrigin: true,
pathRewrite: {
'^/debug': '/'
}
},
+ '/static/snap': {
+ target: 'https://default.wvp-pro.cn:18080',
+ changeOrigin: true,
+ // pathRewrite: {
+ // '^/static/snap': '/static/snap'
+ // }
+ },
},
// Various Dev Server settings
- host: 'localhost', // can be overwritten by process.env.HOST
+ host:"127.0.0.1",
+ useLocalIp: false, // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
+ hot: true,//鑷姩淇濆瓨
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
@@ -51,8 +60,8 @@
// Paths
assetsRoot: path.resolve(__dirname, '../../src/main/resources/static/'),
- assetsSubDirectory: '.',
- assetsPublicPath: '/',
+ assetsSubDirectory: './static',
+ assetsPublicPath: './',
/**
* Source Maps
--
Gitblit v1.8.0