This commit is contained in:
PQZ 2024-08-28 15:17:45 +08:00
parent 8cf4a5d54d
commit ab8e44c8bb
2 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,7 @@
}
this.appuser.type = 0
request({
url: '/loginApp',
url: '/system/auth/loginApp',
method: 'post',
data: this.appuser
}).then((res) => {

View File

@ -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()
}