This commit is contained in:
lcw
2025-08-16 16:54:03 +08:00
parent 71487ac647
commit 42f5e37f65
69 changed files with 5913 additions and 978 deletions

View File

@ -4,11 +4,18 @@ function resolve(dir) {
return path.join(__dirname, dir);
}
const serverHost = "http://192.168.1.32:8066"//波哥
const serverHost = "http://192.168.1.32:8006"//波哥
// const serverHost = "http://192.168.0.231:8006"//线上
// const serverHost = "http://192.168.1.117:8006"//周
// const serverHost = "http://192.168.1.98:8006"//毛毛
module.exports = {
// configureWebpack: {
// resolve: {
// alias: {
// vue: '@vue/compat'
// }
// }
// },
publicPath: "./",
outputDir: "gsxt",
assetsDir: "static",
@ -44,6 +51,15 @@ module.exports = {
changeOrigin: true,
logLevel: "debug"
},
"/": {
target: "http://192.168.0.101:32001",
changeOrigin: true,
logLevel: "debug",
onProxyReq(proxyReq) {
// 在这里添加固定的 Cookie
proxyReq.setHeader('Cookie', 'clientKey-temp=1c2db6cac7dd405fb33c2a6725337925; static_version_fpip-manage=1.222; clientKey=30842687f48c4ed1818dbc45a0cdd4e1; static_version_fpip-jgpt=1.222; static_version_fpip-mdjf=1.222; static_version_fpip-tddx=1.222; static_version_fpip-dtbd=1.222; static_version_fpip-qzgl=1.222; static_version_fpip-bzdz=1.222; static_version_fpip-pcsgl=1.222; static_version_fpip-sydw=1.222')
},
},
"/chat": {
target: 'https://api.deepseek.com/chat/',
changeOrigin: true,
@ -54,6 +70,11 @@ module.exports = {
},
}
},
// resolve: {
// alias: {
// vue: '@vue/compat' // 强制使用兼容模式
// }
// },
chainWebpack(config) {
// 设置 svg-sprite-loader
// config 为 webpack 配置对象