From 572d37bdbc6d9a5024bc3cd895e7bd8215e68651 Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期五, 30 八月 2024 15:22:27 +0800
Subject: [PATCH] 表单列表查询为空的时候不返回错误信息
---
Source/plt-web/plt-web-ui/src/api/user.js | 100 ++++---------------------------------------------
1 files changed, 9 insertions(+), 91 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/api/user.js b/Source/plt-web/plt-web-ui/src/api/user.js
index 0a7fed7..7fb72ed 100644
--- a/Source/plt-web/plt-web-ui/src/api/user.js
+++ b/Source/plt-web/plt-web-ui/src/api/user.js
@@ -19,100 +19,9 @@
}
});
-export const loginBySocial = (tenantId, source, state) => request({
- url: '/api/blade-auth/oauth/token',
- method: 'post',
- headers: {
- 'Tenant-Id': tenantId
- },
- params: {
- tenantId,
- source,
- state,
- grant_type: "social",
- scope: "all",
- }
-})
-
-export const loginBySso = (state) => request({
- url: '/api/blade-auth/oauth/token',
- method: 'post',
- headers: {
- 'Tenant-Id': state
- },
- params: {
- tenantId: state,
- grant_type: "authorization_code",
- scope: "all",
- redirect_uri: website.redirectUri,
- }
-})
-
-export const refreshToken = (refresh_token, tenantId, deptId, roleId) => request({
- url: '/api/blade-auth/oauth/token',
- method: 'post',
- headers: {
- 'Tenant-Id': tenantId,
- 'Dept-Id': (website.switchMode ? deptId : ''),
- 'Role-Id': (website.switchMode ? roleId : '')
- },
- params: {
- tenantId,
- refresh_token,
- grant_type: "refresh_token",
- scope: "all",
- }
-});
-
-export const registerGuest = (form, oauthId) => request({
- url: '/api/blade-user/register-guest',
- method: 'post',
- params: {
- tenantId: form.tenantId,
- name: form.name,
- account: form.account,
- password: form.password,
- oauthId
- }
-});
-
-export const getButtons = () => request({
- url: '/api/blade-system/menu/buttons',
- method: 'get'
-});
-
-export const getCaptcha = () => request({
- url: '/api/blade-auth/oauth/captcha',
- method: 'get',
- authorization: false
-});
-
-export const logout = () => request({
- url: '/api/blade-auth/oauth/logout',
- method: 'get',
- authorization: false
-});
-
export const getUserInfo = () => request({
url: '/api/framework/loginController/getSessionInfo',
method: 'post'
-});
-
-export const sendLogs = (list) => request({
- url: '/api/blade-auth/oauth/logout',
- method: 'post',
- data: list
-});
-
-export const clearCache = () => request({
- url: '/api/blade-auth/oauth/clear-cache',
- method: 'get',
- authorization: false
-});
-
-export const selcetList = () => request({
- url: '/api/blade-system/tenant/tenant-map',
- method: 'get',
});
// 淇敼瀵嗙爜
@@ -128,3 +37,12 @@
});
}
+// 閫�鍑虹櫥褰�
+export function logout(params) {
+ return request({
+ url: "/api/framework/loginController/logout",
+ method: "post",
+ params
+ });
+}
+
--
Gitblit v1.9.3