From ab238d660dd026da8239c89ee3103a5a691dab9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com> Date: Wed, 8 Mar 2023 10:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/dev.env.js | 4 ++-- config/index.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/dev.env.js b/config/dev.env.js index 8534557..b744a55 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -4,5 +4,5 @@ const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', - BASE_API: '"/api/"', -}) \ No newline at end of file + BASE_API: '"http://localhost/index.php/"', +}) diff --git a/config/index.js b/config/index.js index 04720a6..a34be70 100644 --- a/config/index.js +++ b/config/index.js @@ -11,14 +11,14 @@ module.exports = { assetsPublicPath: '/', proxyTable: { '/api': { - target: 'http://192.168.50.40:8088', + target: 'http://127.0.0.1/', changeOrigin: true, pathRewrite: { '^/api': '' } }, '/file': { - target: 'http://192.168.50.40:8088/', + target: 'http://localhost/index.php/', changeOrigin: true, pathRewrite: { '^/file': '' @@ -28,7 +28,7 @@ module.exports = { // Various Dev Server settings host: '0.0.0.0', // can be overwritten by process.env.HOST - port: 8090, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined + port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true, notifyOnErrors: false, @@ -98,4 +98,4 @@ module.exports = { // `npm run build:prod --generate_report` generateAnalyzerReport: process.env.npm_config_generate_report || false } -} \ No newline at end of file +}