From 90d1553399a96884b73a6d8615ef5c0e82f5fc3a Mon Sep 17 00:00:00 2001 From: songhuangfeng123 <shf18767906695@163.com> Date: 星期四, 23 六月 2022 09:17:58 +0800 Subject: [PATCH] 路由修改 --- config/index.js | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/config/index.js b/config/index.js index d087506..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 -- Gitblit v1.9.2