Skip to content

Commit c1e241c

Browse files
committed
perf: 优化前端登录请求方法
1 parent f076bb9 commit c1e241c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ruoyi-fastapi-frontend/src/api/login.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import request from '@/utils/request'
22

33
// 登录方法
44
export function login(username, password, code, uuid) {
5-
const data = new FormData();
6-
data.append("username", username);
7-
data.append("password", password);
8-
data.append("code", code);
9-
data.append("uuid", uuid);
5+
const data = {
6+
username,
7+
password,
8+
code,
9+
uuid
10+
}
1011
return request({
1112
url: '/login',
1213
headers: {

0 commit comments

Comments
 (0)