add tenant to all request header

This commit is contained in:
ailanyin
2023-05-11 17:19:05 +08:00
parent 685f1527e5
commit 11b23ec129
5 changed files with 17 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import request from '@/utils/request'
// 登录方法
export function login(username, password, code, uuid, tenant) {
export function login(username, password, code, uuid) {
const data = {
username,
password,
@ -12,7 +12,6 @@ export function login(username, password, code, uuid, tenant) {
url: '/login',
headers: {
isToken: false,
tenant
},
method: 'post',
data: data