From b848a5cbbcc80c994aaf6156c365ce725867ad57 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期四, 13 十月 2022 17:57:58 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui

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

diff --git a/vue.config.js b/vue.config.js
index afd301f..7da1cd2 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -33,13 +33,16 @@
     host: 'localhost',
     port: port,
     open: true,
+    headers: {
+      "Access-Control-Allow-Origin": "*",
+    },
     proxy: {
       // 璺ㄥ煙閰嶇疆
-      [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:8080`,
+      "/sccg": {
+        target: `http://42.193.1.25:8082`,
         changeOrigin: true,
         pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
+          "^/api": ''
         }
       }
     },

--
Gitblit v1.8.0