From 91ccfa3ebdc7a68b6f632c3e59757ec03b15ac1f Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期五, 02 九月 2022 15:15:01 +0800 Subject: [PATCH] lct --- config/index.js | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config/index.js b/config/index.js index da68a8d..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, @@ -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