From 34a6f2e1f12786d2da4e2db1edd92163e7e5be62 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Wed, 01 Sep 2021 14:03:59 +0800
Subject: [PATCH] 查询列表设置数据字典样式回显
---
ruoyi-ui/src/api/login.js | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 8b39686..74ed95e 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -1,15 +1,23 @@
import request from '@/utils/request'
-const client_id = 'web'
-const client_secret = '123456'
-const scope = 'server'
-
// 登录方法
export function login(username, password, code, uuid) {
return request({
url: '/auth/login',
method: 'post',
data: { username, password, code, uuid }
+ })
+}
+
+// 注册方法
+export function register(data) {
+ return request({
+ url: '/auth/register',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ data: data
})
}
@@ -41,6 +49,7 @@
export function getCodeImg() {
return request({
url: '/code',
- method: 'get'
+ method: 'get',
+ timeout: 20000
})
}
\ No newline at end of file
--
Gitblit v1.9.3