1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| /*
| * @Author: shuishen 1109946754@qq.com
| * @Date: 2023-02-20 14:16:37
| * @LastEditors: shuishen 1109946754@qq.com
| * @LastEditTime: 2023-02-20 14:23:06
| * @FilePath: \srs-police-affairs\src\api\user\index.js
| * @Description:
| *
| * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
| */
| import request from "@/router/axios.js"
|
| export const refreshToken = (refresh_token, tenantId) => request({
| url: '/api/blade-auth/oauth/token',
| method: 'post',
| headers: {
| 'Tenant-Id': tenantId,
| 'Dept-Id': '',
| 'Role-Id': ''
| },
| params: {
| tenantId,
| refresh_token,
| grant_type: "refresh_token",
| scope: "all",
| }
| })
|
|