From 91ccfa3ebdc7a68b6f632c3e59757ec03b15ac1f Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Fri, 02 Sep 2022 15:15:01 +0800
Subject: [PATCH] lct
---
config/index.js | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/config/index.js b/config/index.js
index d087506..2791e98 100644
--- a/config/index.js
+++ b/config/index.js
@@ -9,13 +9,21 @@
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
+ proxyTable: {
+ '/taboi': {
+ target: 'http://123.56.127.115:8011', // 你接口的域名
+ changeOrigin: true,
+ pathRewrite: {
+ '^/taboi': '/taboi'
+ },
+ },
+ },
// Various Dev Server settings
// can be overwritten by process.env.HOST
// if you want dev by ip, please set host: '0.0.0.0'
- host: 'localhost',
+ host: '192.168.0.54',
port: 8101, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
--
Gitblit v1.9.2