From 9398f14feea7ad8b7d00ce7d2bb2e5362cec59d3 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期二, 09 一月 2024 15:20:15 +0800
Subject: [PATCH] 代码提交

---
 vue.config.js |   46 +++++++++++-----------------------------------
 1 files changed, 11 insertions(+), 35 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 720a4d2..893c1a6 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,43 +1,19 @@
-/*
- * @Author: 鐜嬫棴 1377869194@qq.com
- * @Date: 2023-05-08 13:52:20
- * @LastEditors: 鐜嬫棴 1377869194@qq.com
- * @LastEditTime: 2023-05-08 14:17:30
- * @FilePath: \LFWEB_NEW\vue.config.js
- * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- */
-const path = require("path")
-const resolve = dir => path.join(__dirname, dir)
 module.exports = {
   lintOnSave: false,
   publicPath: "./",
+  outputDir: process.env.outputDir,
   devServer: {
-    host: 'localhost',//鏈湴鍦板潃
-    port: '8080',//绔彛鍙�
-    hot: true,//鐑洿鏂拌嚜鍔ㄥ埛鏂�
-    open: true,//鑷姩鎵撳紑
-    overlay: {  //褰撳嚭鐜扮紪璇戦敊璇垨璀﹀憡鏃讹紝鍦ㄦ祻瑙堝櫒涓樉绀哄叏灞忚鐩栥�傚彧鏄剧ず閿欒淇℃伅涓嶆彁绀鸿鍛婃儏鍐甸檺鍒舵槸
-      warning: false,
-      error: true
-    },
+    //proxy: "http://192.168.20.70:8001/"
+    // // 閰嶇疆璺ㄥ煙-璇锋眰鍚庣鐨勪唬鐞嗘帴鍙�
     proxy: {
-      "/aaaa": {
-        target: 'http:localhost/aaaa',//浠g悊鍦板潃 鍑℃槸浣跨敤/api
-        changeOrigin: true,//鍏佽璺ㄥ煙璇锋眰
-        secure: false,
-        pathRewrite: { //閲嶅啓璺緞 鏇挎崲璇锋眰鍦板潃涓殑鎸囧畾璺緞
-          ['^/aaaa']: '' //灏嗚姹傚湴鍧�涓殑api鏇挎崲涓虹┖
-        }
-      }
-    }
-  },
-
-  configureWebpack: {
-    resolve: {
-      alias: {
-        "@": resolve("src"),
+      "/JiangSu": {
+        target: "http://localhost:8080/JiangSu", //瀵瑰簲鑷繁鐨勬帴鍙�
+        changeOrigin: true,
+        ws: true,
+        pathRewrite: {
+          "^/JiangSu": "",
+        },
       },
     },
   },
-
-}
+};

--
Gitblit v1.9.3