1
This commit is contained in:
parent
20c20285f8
commit
a441fbd0f6
@ -4,7 +4,7 @@ module.exports = {
|
|||||||
|
|
||||||
//baseUrl: 'https://www.nuoyunr.com/jx',
|
//baseUrl: 'https://www.nuoyunr.com/jx',
|
||||||
imagesUrl: 'https://www.nuoyunr.com/jx',
|
imagesUrl: 'https://www.nuoyunr.com/jx',
|
||||||
baseUrl: 'http://192.168.31.54:8016/jx',
|
baseUrl: 'http://localhost:48080',
|
||||||
// imagesUrl: 'http://192.168.31.54:8016/jx',
|
// imagesUrl: 'http://192.168.31.54:8016/jx',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
|
@ -148,8 +148,8 @@
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.appuser
|
data: this.appuser
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 0) {
|
||||||
uni.setStorageSync("App-Token", res.token)
|
uni.setStorageSync("App-Token", res.data.token)
|
||||||
uni.setStorageSync("loginType", this.tabindex)
|
uni.setStorageSync("loginType", this.tabindex)
|
||||||
if (this.tabindex == 0) {
|
if (this.tabindex == 0) {
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ const request = config => {
|
|||||||
// 是否需要设置 token
|
// 是否需要设置 token
|
||||||
const isToken = (config.headers || {}).isToken === false
|
const isToken = (config.headers || {}).isToken === false
|
||||||
config.header = config.header || {}
|
config.header = config.header || {}
|
||||||
|
config.header['Tenant-Id'] = '1'
|
||||||
if (getToken() && !isToken) {
|
if (getToken() && !isToken) {
|
||||||
config.header['Authorization'] = 'Bearer ' + getToken()
|
config.header['Authorization'] = 'Bearer ' + getToken()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user