This commit is contained in:
2025-08-22 14:23:19 +08:00
parent de5eb33b1a
commit ca8cd514b1
22 changed files with 3259 additions and 1499 deletions

View File

@@ -35,14 +35,14 @@ module.exports = {
// webpack-dev-server 相关配置
devServer: {
// ip 变化
host: "172.16.10.34",
host: "0.0.0.0",
port: port,
open: true,
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://172.16.10.97:8002`,
target: `http://116.204.107.54:8002`,
target: `http://172.16.10.97:8002`,
changeOrigin: true,
pathRewrite: {
@@ -152,10 +152,10 @@ module.exports = {
},
});
config.optimization.runtimeChunk("single"),
{
from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件
to: "./", //到根目录下
};
{
from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件
to: "./", //到根目录下
};
});
},
};