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 1/3] =?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 +} From 4a5346a4673fbc7abc9808988d37dadabc3e8db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com> Date: Thu, 9 Mar 2023 17:23:07 +0800 Subject: [PATCH 2/3] update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2ccbe46..ddb618d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /node_modules/ +dist From e65a2da099cd6a143e795b3fa4bb9870d603b67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com> Date: Thu, 9 Mar 2023 19:23:42 +0800 Subject: [PATCH 3/3] git ignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2ccbe46..ddb618d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /node_modules/ +dist