From f90f450ca25197e31281dca5b5598136730d7d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E8=AE=AD?= <11929933+shen_xun@user.noreply.gitee.com> Date: Tue, 25 Feb 2025 09:44:59 +0800 Subject: [PATCH 1/3] x --- package.json | 2 +- vue.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 15646e1..cbd4940 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "LionLi", "license": "MIT", "scripts": { - "dev": "vue-cli-service serve", + "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "build:prod": "vue-cli-service build", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src" diff --git a/vue.config.js b/vue.config.js index 526e63a..e6384c6 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, + target: `http://localhost:8081`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' From 4d858d9a5722dbf4725f91491616e0e07214f5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E8=AE=AD?= <11929933+shen_xun@user.noreply.gitee.com> Date: Sat, 8 Mar 2025 14:43:19 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95web-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- vue.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index 8c22603..3cd3adb 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = Coin后台管理系统 ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = '/dev-api' +VUE_APP_BASE_API = 'http://8.137.52.68:8081' # 应用访问路径 例如使用前缀 /admin/ VUE_APP_CONTEXT_PATH = '/' diff --git a/vue.config.js b/vue.config.js index e6384c6..73e84de 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8081`, + target: `http://8.137.52.68:8081`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' From d8ddcd5c230e122eac093a725a2c474fa603363d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E8=AE=AD?= <11929933+shen_xun@user.noreply.gitee.com> Date: Sat, 8 Mar 2025 14:45:16 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.production b/.env.production index 72f1c35..9c1d10d 100644 --- a/.env.production +++ b/.env.production @@ -5,7 +5,8 @@ VUE_APP_TITLE = Coin后台管理系统 ENV = 'production' # 若依管理系统/生产环境 -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = 'http://8.137.52.68:8081' +# VUE_APP_BASE_API = '/prod-api' # 应用访问路径 例如使用前缀 /admin/ VUE_APP_CONTEXT_PATH = '/'