From 7cde297f0a99e060aea9bce60d1c121a14ae74d7 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期四, 29 八月 2024 17:58:54 +0800 Subject: [PATCH] 新版 --- config/index.js | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/config/index.js b/config/index.js index 0a5dc69..e22f4a0 100644 --- a/config/index.js +++ b/config/index.js @@ -10,7 +10,15 @@ // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', - proxyTable: {}, + proxyTable: { + '/prod-api': { + target: `http://192.168.11.203:8090`, + changeOrigin: true, + pathRewrite: { + '^/prod-api': '/prod-api' + } + } + }, // Various Dev Server settings host: 'localhost', // can be overwritten by process.env.HOST @@ -38,10 +46,10 @@ build: { // Template for index.html - index: path.resolve(__dirname, '../SWZJXT/index.html'), + index: path.resolve(__dirname, '../504KTY/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../SWZJXT'), + assetsRoot: path.resolve(__dirname, '../504KTY'), assetsSubDirectory: './static', assetsPublicPath: './', -- Gitblit v1.9.3