From 120ff6c5a19a8b9d22e2dc272482bd0b5b1654ba Mon Sep 17 00:00:00 2001 From: Xwen <929716663@qq.com> Date: Thu, 14 Dec 2023 14:59:00 +0800 Subject: [PATCH] =?UTF-8?q?perf:=E6=B7=BB=E5=8A=A0=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Bbs.Vue3/.env.development | 2 +- Yi.Bbs.Vue3/.env.production | 2 +- Yi.Bbs.Vue3/src/config/axios/service.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Yi.Bbs.Vue3/.env.development b/Yi.Bbs.Vue3/.env.development index 360d5b7f..a26e1ee1 100644 --- a/Yi.Bbs.Vue3/.env.development +++ b/Yi.Bbs.Vue3/.env.development @@ -1,4 +1,4 @@ # 接口前缀 VITE_APP_BASEAPI="/api-dev" -VITE_APP_URL="http://123.207.63.87/api/app" +VITE_APP_URL="http://123.207.63.87:19001/api/app" VITE_APP_ENV_NAME = "dev" \ No newline at end of file diff --git a/Yi.Bbs.Vue3/.env.production b/Yi.Bbs.Vue3/.env.production index 9be9fbcb..3d11abbd 100644 --- a/Yi.Bbs.Vue3/.env.production +++ b/Yi.Bbs.Vue3/.env.production @@ -1,4 +1,4 @@ # 接口前缀 VITE_APP_BASEAPI="/prod-api" -VITE_APP_URL="http://123.207.63.87/api/app" +VITE_APP_URL="http://123.207.63.87:19001/api/app" VITE_APP_ENV_NAME = "production" \ No newline at end of file diff --git a/Yi.Bbs.Vue3/src/config/axios/service.js b/Yi.Bbs.Vue3/src/config/axios/service.js index d6b2d1ad..bf282440 100644 --- a/Yi.Bbs.Vue3/src/config/axios/service.js +++ b/Yi.Bbs.Vue3/src/config/axios/service.js @@ -8,7 +8,7 @@ const { VITE_APP_ENV_NAME } = import.meta.env; const { getToken } = useAuths(); const { base_url, request_timeout, pre_interface } = config; -export const PATH_URL = base_url[VITE_APP_ENV_NAME] + pre_interface; +export const PATH_URL = base_url[VITE_APP_ENV_NAME]; // 配置新建一个 axios 实例 const service = axios.create({