From fe4c3af9a6de279c7cc2d0de8255530af610aa1f Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期三, 02 七月 2025 15:44:37 +0800
Subject: [PATCH] qx

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

diff --git a/vue.config.js b/vue.config.js
index 57f3239..ed3d26b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -10,11 +10,28 @@
 const name = process.env.VUE_APP_TITLE || "鏅烘収鍋ュ悍浣撴绠$悊绯荤粺"; // 缃戦〉鏍囬
 
 const port = process.env.port || process.env.npm_config_port || 80; // 绔彛
-
+const generateHash = (str) => require('crypto').createHash('md5').update(str).digest('hex').slice(0, 8);
 // vue.config.js 閰嶇疆璇存槑
 //瀹樻柟vue.config.js 鍙傝�冩枃妗� https://cli.vuejs.org/zh/config/#css-loaderoptions
 // 杩欓噷鍙垪涓�閮ㄥ垎锛屽叿浣撻厤缃弬鑰冩枃妗�
 module.exports = {
+  transpileDependencies: ["vue-json-excel"], //杩欓噷鏄皢寮曠敤鐨勬彃浠惰浆鎴恊s5锛屽叿浣撹浆鍝釜 鐪嬫祻瑙堝櫒鎺у埗鍙板摢涓姤閿欏氨濂戒簡
+  // pages: {
+  //   index: {
+  //     // add here ---start---
+
+  //     entry: ["node_modules/@babel/polyfill/dist/polyfill.js", "src/main.js"], //杩欓噷鐨勮矾鍔蹭竴瀹氳鍐欒嚜宸辩殑锛屽師浣滆�呯殑璺緞涓庢垜鐨勪笉鍚�
+
+  //     // add here ---end---
+
+  //     template: "public/index.html",
+
+  //     filename: "index.html",
+
+  //     chunks: ["chunk-vendors", "chunk-common", "index"],
+  //   },
+  // },
+
   // 閮ㄧ讲鐢熶骇鐜鍜屽紑鍙戠幆澧冧笅鐨刄RL銆�
   // 榛樿鎯呭喌涓嬶紝Vue CLI 浼氬亣璁句綘鐨勫簲鐢ㄦ槸琚儴缃插湪涓�涓煙鍚嶇殑鏍硅矾寰勪笂
   // 渚嬪 https://www.ruoyi.vip/銆傚鏋滃簲鐢ㄨ閮ㄧ讲鍦ㄤ竴涓瓙璺緞涓婏紝浣犲氨闇�瑕佺敤杩欎釜閫夐」鎸囧畾杩欎釜瀛愯矾寰勩�備緥濡傦紝濡傛灉浣犵殑搴旂敤琚儴缃插湪 https://www.ruoyi.vip/admin/锛屽垯璁剧疆 baseUrl 涓� /admin/銆�
@@ -35,8 +52,10 @@
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        //target: `https://ltpeis.xaltjdkj.cn:5501/prod-api/getInfo`,
-        target: `http://192.168.0.104:5011`,
+        // target: `https://ltpeis.xaltjdkj.cn:5801/`,
+        // target: `http://192.168.1.99:5012`,
+        target: `http://192.168.1.2:5011`,
+        // target: `http://192.168.1.2:5011`,
         // // target: `http://192.168.0.99:8080/ltkj-admin`,
         // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`,
         // target: `http://10.168.0.9:5011`,
@@ -45,6 +64,16 @@
           ["^" + process.env.VUE_APP_BASE_API]: "",
         },
       },
+      '/douban':{
+        target:'http://192.168.1.3:14765',
+        changeOrigin:true,
+        ws: true,
+        pathRewrite: {
+          '^/douban': '',
+        },
+       
+      },
+
     },
     disableHostCheck: true,
   },

--
Gitblit v1.8.0