From 6dd870e74c90d39c6ef2443f2f6c058f5973af62 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 09 四月 2024 10:59:59 +0800
Subject: [PATCH] 修复点播端口为空
---
web_src/config/index.js | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/web_src/config/index.js b/web_src/config/index.js
index a16611c..9d24d1b 100644
--- a/web_src/config/index.js
+++ b/web_src/config/index.js
@@ -12,20 +12,30 @@
assetsPublicPath: '/',
proxyTable: {
'/debug': {
- target: 'http://localhost:18080',
+ target: 'http://127.0.0.1:18082',
changeOrigin: true,
pathRewrite: {
'^/debug': '/'
}
- }
+ },
+ '/static/snap': {
+ target: 'http://127.0.0.1:18082',
+ 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-
@@ -50,7 +60,7 @@
// Paths
assetsRoot: path.resolve(__dirname, '../../src/main/resources/static/'),
- assetsSubDirectory: '.',
+ assetsSubDirectory: './static',
assetsPublicPath: '/',
/**
--
Gitblit v1.8.0