From 04031b86d12c54dad59ebca8819f03479e87924f Mon Sep 17 00:00:00 2001
From: zhoucong <123456>
Date: 星期五, 22 四月 2022 15:25:56 +0800
Subject: [PATCH] fix

---
 config/index.js |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/config/index.js b/config/index.js
index da68a8d..66ee7be 100644
--- a/config/index.js
+++ b/config/index.js
@@ -9,7 +9,15 @@
     // Paths
     assetsSubDirectory: 'static',
     assetsPublicPath: '/',
-    proxyTable: {},
+    proxyTable: {
+        '/taboi': {
+            target: 'http://123.56.127.115:8011', // 你接口的域名
+            changeOrigin: true,
+            pathRewrite: {
+                '^/taboi': '/taboi'
+            },
+        },
+    },
 
     // Various Dev Server settings
 
@@ -47,10 +55,10 @@
 
   build: {
     // Template for index.html
-    index: path.resolve(__dirname, '../dist/index.html'),
+    index: path.resolve(__dirname, '../zhongtaiweb/index.html'),
 
     // Paths
-    assetsRoot: path.resolve(__dirname, '../dist'),
+    assetsRoot: path.resolve(__dirname, '../zhongtaiweb'),
     assetsSubDirectory: 'static',
     // assetsSubDirectory: 'dataShow/static',
 

--
Gitblit v1.9.2