From 342361cef8335bfc00f4e453a970c7438a04db14 Mon Sep 17 00:00:00 2001
From: 逐浪人 <zhulangren@gmail.com>
Date: 星期六, 11 二月 2023 22:08:51 +0800
Subject: [PATCH] Update CloudRecordDetail.vue
---
web_src/config/index.js | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/web_src/config/index.js b/web_src/config/index.js
index 5ab5eac..6f0ca8b 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: 'http://localhost:38080',
changeOrigin: true,
pathRewrite: {
'^/debug': '/'
}
},
+ '/static/snap': {
+ target: 'http://localhost:38080',
+ 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-
@@ -52,7 +61,7 @@
// Paths
assetsRoot: path.resolve(__dirname, '../../src/main/resources/static/'),
assetsSubDirectory: './static',
- assetsPublicPath: '/',
+ assetsPublicPath: './',
/**
* Source Maps
--
Gitblit v1.8.0