From f472cbf5ff51f29d7566cd93ea1e389cd71c0df7 Mon Sep 17 00:00:00 2001 From: XiaoXinPro 14 IAH5R <568170040@qq.com> Date: Thu, 25 May 2023 18:19:18 +0800 Subject: [PATCH 1/4] /c --- .env.development | 2 +- .env.production | 2 +- src/apis/login.js | 2 +- src/utils/request.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index 069808e..89219d7 100644 --- a/.env.development +++ b/.env.development @@ -5,4 +5,4 @@ NODE_ENV='development' VITE_APP_TITLE = 'Metavatar-PC' VITE_APP_PORT = 3000 -VITE_APP_BASE_API = 'https://photo.metavatar.cc/C/api' +VITE_APP_BASE_API = 'https://photo.metavatar.cc/C' diff --git a/.env.production b/.env.production index f220d73..6c3e95c 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,4 @@ VITE_APP_TITLE = 'Metavatar-PC' VITE_APP_PORT = 3000 -VITE_APP_BASE_API = 'https://photo.metavatar.cc/C/api' +VITE_APP_BASE_API = 'https://photo.metavatar.cc/C' diff --git a/src/apis/login.js b/src/apis/login.js index c724e7c..d5d19ec 100644 --- a/src/apis/login.js +++ b/src/apis/login.js @@ -48,5 +48,5 @@ export function sendRegisterEmail(email) { * @description:获取图形验证码 * @return: 验证码地址 */ -export const getCodeImgUrl = baseURL + '/user/captcha.jpg' +export const getCodeImgUrl = baseURL + '/api/user/captcha.jpg' diff --git a/src/utils/request.js b/src/utils/request.js index c108c8e..e81ffa5 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -7,7 +7,7 @@ ElMessage * @description:发送Axios请求 */ const request = axios.create({ - baseURL: '/api', + baseURL: '/C', timeout: 5000 }) From 242e6c4861867a36bed4a74bb8df01978ed6b623 Mon Sep 17 00:00:00 2001 From: XiaoXinPro 14 IAH5R <568170040@qq.com> Date: Thu, 25 May 2023 18:19:33 +0800 Subject: [PATCH 2/4] version --- src/views/login/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index b0a4e57..261f9c4 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,6 +1,6 @@