init
This commit is contained in:
parent
f380ba6d21
commit
7960eb6a90
@ -497,7 +497,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.images || this.images.length == 0) {
|
if (!this.images) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请上传图片再完成',
|
title: '请上传图片再完成',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@ -765,8 +765,8 @@
|
|||||||
url: '/infra/file/upload',
|
url: '/infra/file/upload',
|
||||||
filePath: url,
|
filePath: url,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log('images', res.data.url);
|
console.log('images', res.data);
|
||||||
this.images.push(res.data.url)
|
this.images.push(res.data)
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import request from '../../utils/request';
|
import request from '../../utils/request';
|
||||||
import {setToken, setTenantId} from '@/utils/auth.js'
|
import {setToken, setTenantId,removeToken} from '@/utils/auth.js'
|
||||||
import {
|
import {
|
||||||
getTenantIdByWebsite
|
getTenantIdByWebsite
|
||||||
} from '@/api/login.js'
|
} from '@/api/login.js'
|
||||||
@ -90,6 +90,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onLoad(){
|
||||||
|
removeToken()
|
||||||
|
},
|
||||||
methods:{
|
methods:{
|
||||||
//登录请求
|
//登录请求
|
||||||
getlogin(){
|
getlogin(){
|
||||||
|
@ -203,7 +203,9 @@
|
|||||||
<view class="wrap-box" style="margin-left: 20px;" v-if="item.images">
|
<view class="wrap-box" style="margin-left: 20px;" v-if="item.images">
|
||||||
<view class="img-box" v-for="(items,index) in item.images.split(',') "
|
<view class="img-box" v-for="(items,index) in item.images.split(',') "
|
||||||
@click="lookimg(index,item.images.split(','))" :key="index">
|
@click="lookimg(index,item.images.split(','))" :key="index">
|
||||||
|
|
||||||
<image :src="baseImageUrl + items " mode=""></image>
|
<image :src="baseImageUrl + items " mode=""></image>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -18,6 +18,8 @@ const request = config => {
|
|||||||
const isTanantId = (config.headers || {}).isTanantId === false
|
const isTanantId = (config.headers || {}).isTanantId === false
|
||||||
if(getTenantId() && !isTanantId){
|
if(getTenantId() && !isTanantId){
|
||||||
config.header['Tenant-Id'] = getTenantId()
|
config.header['Tenant-Id'] = getTenantId()
|
||||||
|
}else{
|
||||||
|
config.header['Tenant-Id'] = '180'
|
||||||
}
|
}
|
||||||
// get请求映射params参数
|
// get请求映射params参数
|
||||||
if (config.params) {
|
if (config.params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user