From d3513d94f668cc1ab85b180001854b7652afee83 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期三, 16 四月 2025 15:50:09 +0800
Subject: [PATCH] Big Change

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

diff --git a/vue.config.js b/vue.config.js
index ca0d342..5703929 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,13 +1,41 @@
 const { defineConfig } = require('@vue/cli-service');
-const path = require("path");
+const path = require('path');
 
 module.exports = defineConfig({
+  runtimeCompiler: false,     //鏂板
+  productionSourceMap: false, //鏂板
   transpileDependencies: true,
   configureWebpack: {
     resolve: {
       alias: {
-        "@": path.resolve("src")
+        '@': path.resolve(__dirname, 'src')
+      }
+    }
+  },
+  //鏂板
+  devServer: {
+    port: 8080, 
+    open: true, 
+    host: '0.0.0.0',
+    https: false, 
+    hot: true, 
+    proxy: {
+      '/api': {
+        target: 'http://192.168.1.106:8079',
+        changeOrigin: true,
+        pathRewrite: {
+          '^/api': '' 
+        },
+        secure: false 
+      },
+      '/hp': {
+        target: 'http://192.168.56.106:9511',
+        changeOrigin: true,
+        pathRewrite: {
+          '^/hp': ''
+        },
+        secure: false
       }
     }
   }
-})
+});
\ No newline at end of file

--
Gitblit v1.9.3