From e1e05b761a29d123844f661e0ac12b33f00bf84d Mon Sep 17 00:00:00 2001
From: DokiYoloo <857815116@qq.com>
Date: Sat, 30 Jan 2021 17:19:23 +0800
Subject: [PATCH] !43 角色管理-编辑角色-功能权限显示异常 Merge pull request !43 from wihi/master
---
ruoyi-ui/src/api/login.js | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 9aa93ca..8b39686 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -2,15 +2,22 @@
const client_id = 'web'
const client_secret = '123456'
-const grant_type = 'password'
const scope = 'server'
// 登录方法
export function login(username, password, code, uuid) {
return request({
- url: '/auth/oauth/token',
+ url: '/auth/login',
method: 'post',
- params: { username, password, code, uuid, client_id, client_secret, grant_type, scope }
+ data: { username, password, code, uuid }
+ })
+}
+
+// 刷新方法
+export function refreshToken() {
+ return request({
+ url: '/auth/refresh',
+ method: 'post'
})
}
@@ -25,7 +32,7 @@
// 退出方法
export function logout() {
return request({
- url: '/auth/token/logout',
+ url: '/auth/logout',
method: 'delete'
})
}
--
Gitblit v1.9.3