From f3195be73291effc55c3e35e623b82953cf1fc02 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期五, 11 八月 2023 17:59:10 +0800
Subject: [PATCH] update 优化 整体代码结构

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

diff --git a/src/api/login.ts b/src/api/login.ts
index 2f75ecb..9efc86d 100644
--- a/src/api/login.ts
+++ b/src/api/login.ts
@@ -4,7 +4,7 @@
 import { UserInfo } from '@/api/system/user/types';
 
 // pc绔浐瀹氬鎴风鎺堟潈id
-const clientId = 'e5cd7e4891bf95d1d19206ce24a7b32e';
+const clientId = import.meta.env.VITE_APP_CLIENT_ID;
 
 /**
  * @param data {LoginData}
@@ -54,7 +54,7 @@
  */
 export function getCodeImg(): AxiosPromise<VerifyCodeResult> {
   return request({
-    url: '/code',
+    url: '/auth/code',
     headers: {
       isToken: false
     },

--
Gitblit v1.9.3