1
This commit is contained in:
parent
8cf4a5d54d
commit
ab8e44c8bb
@ -131,7 +131,7 @@
|
||||
}
|
||||
this.appuser.type = 0
|
||||
request({
|
||||
url: '/loginApp',
|
||||
url: '/system/auth/loginApp',
|
||||
method: 'post',
|
||||
data: this.appuser
|
||||
}).then((res) => {
|
||||
|
@ -17,6 +17,7 @@ const request = config => {
|
||||
// 是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
config.header = config.header || {}
|
||||
config.header['Tenant-Id'] = '1'
|
||||
if (getToken() && !isToken) {
|
||||
config.header['Authorization'] = 'Bearer ' + getToken()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user