This commit is contained in:
13405411873 2024-10-01 10:51:06 +08:00
parent f380ba6d21
commit 7960eb6a90
4 changed files with 11 additions and 4 deletions

View File

@ -497,7 +497,7 @@
return
}
if (!this.images || this.images.length == 0) {
if (!this.images) {
uni.showToast({
title: '请上传图片再完成',
icon: 'none'
@ -765,8 +765,8 @@
url: '/infra/file/upload',
filePath: url,
}).then((res) => {
console.log('images', res.data.url);
this.images.push(res.data.url)
console.log('images', res.data);
this.images.push(res.data)
})
},

View File

@ -52,7 +52,7 @@
<script>
import request from '../../utils/request';
import {setToken, setTenantId} from '@/utils/auth.js'
import {setToken, setTenantId,removeToken} from '@/utils/auth.js'
import {
getTenantIdByWebsite
} from '@/api/login.js'
@ -90,6 +90,9 @@
}
},
},
onLoad(){
removeToken()
},
methods:{
//
getlogin(){

View File

@ -203,7 +203,9 @@
<view class="wrap-box" style="margin-left: 20px;" v-if="item.images">
<view class="img-box" v-for="(items,index) in item.images.split(',') "
@click="lookimg(index,item.images.split(','))" :key="index">
<image :src="baseImageUrl + items " mode=""></image>
</view>
</view>
</view>

View File

@ -18,6 +18,8 @@ const request = config => {
const isTanantId = (config.headers || {}).isTanantId === false
if(getTenantId() && !isTanantId){
config.header['Tenant-Id'] = getTenantId()
}else{
config.header['Tenant-Id'] = '180'
}
// get请求映射params参数
if (config.params) {