From 3fea4c6a262e3d5953f8cd528e12dda7eae6e3c9 Mon Sep 17 00:00:00 2001 From: SZH <szh_hello@163.com> Date: 星期三, 02 十一月 2022 15:51:21 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/api/login/index.ts | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/api/login/index.ts b/src/api/login/index.ts index 0cd50c5..61d862f 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,9 +18,17 @@ // v1 signOut: () => { return request({ - url: '/auth/logout', + url: import.meta.env.VITE_API_URL + '/auth/logout', method: 'post' }); - } + }, + // 更改密码 + changeCode: (params: object) => { + return request({ + url: import.meta.env.VITE_API_URL + '/account/pwd/forget', + method: 'post', + data: params + }); + }, }; } -- Gitblit v1.9.2