From cd73787dc7cb06cf18aecce71ef4d05ebeca4c0e Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Tue, 13 Apr 2021 18:14:53 +0800
Subject: [PATCH] 数据监控默认地址修改

---
 ruoyi-ui/src/api/login.js |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 9aa93ca..4e9da7f 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -1,16 +1,19 @@
 import request from '@/utils/request'
 
-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 +28,7 @@
 // 退出方法
 export function logout() {
   return request({
-    url: '/auth/token/logout',
+    url: '/auth/logout',
     method: 'delete'
   })
 }

--
Gitblit v1.9.3