From b8e09a7ab8d7a2765e4a55c23a7a57ce09c29b3f Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期五, 26 八月 2022 13:36:34 +0800
Subject: [PATCH] Default Changelist

---
 src/api/login/index.ts |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/login/index.ts b/src/api/login/index.ts
index 0cd50c5..ac55ce0 100644
--- a/src/api/login/index.ts
+++ b/src/api/login/index.ts
@@ -10,7 +10,7 @@
         // v1
         signIn: (params: object) => {
             return request({
-                url: '/auth/login',
+                url: import.meta.env.VITE_API_URL + '/auth/login',
                 method: 'post',
                 data: params
             });
@@ -18,7 +18,7 @@
         // v1
         signOut: () => {
             return request({
-                url: '/auth/logout',
+                url: import.meta.env.VITE_API_URL + '/auth/logout',
                 method: 'post'
             });
         }

--
Gitblit v1.9.2