| | |
| | | * |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | */ |
| | | import request from "@/router/axios.js"; |
| | | 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", |
| | | }, |
| | | }); |
| | | 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", |
| | | }, |
| | | }) |
| | | |
| | | export const getButtons = () => |
| | | request({ |
| | | url: "/api/blade-system/menu/buttons", |
| | | method: "get", |
| | | }); |
| | | request({ |
| | | url: "/api/blade-system/menu/buttons", |
| | | method: "get", |
| | | }) |
| | | |
| | | // 修改密码 |
| | | export const updatePassword = (oldPassword, newPassword, newPassword1) => { |
| | | return request({ |
| | | url: '/api/blade-user/update-password', |
| | | method: 'post', |
| | | params: { |
| | | oldPassword, |
| | | newPassword, |
| | | newPassword1, |
| | | } |
| | | }) |
| | | } |