Commit 7150fc83 authored by 张伯涛's avatar 张伯涛

参数修改

parent b4b3ced7
...@@ -132,11 +132,7 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue"; ...@@ -132,11 +132,7 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
onShow(){ onShow(){
console.log('this.vuex_unit',this.vuex_unit) console.log('this.vuex_unit',this.vuex_unit)
if(this.vuex_unit && this.vuex_unit.length > 0) { if(this.vuex_unit && this.vuex_unit.length > 0) {
if(this.vuex_unit[0].businessId === null) {
this.unitId = ''
}else {
this.unitId = this.vuex_unit[0].businessId this.unitId = this.vuex_unit[0].businessId
}
}else { }else {
this.unitId = '' this.unitId = ''
} }
......
...@@ -70,11 +70,7 @@ export default { ...@@ -70,11 +70,7 @@ export default {
'nomore' : 'loadmore' 'nomore' : 'loadmore'
this.unitList = this.vuex_unit this.unitList = this.vuex_unit
if(this.unitList && this.unitList.length >0) { if(this.unitList && this.unitList.length >0) {
if(this.unitList[0].businessId === null) {
this.unitId = ''
}else {
this.unitId = this.unitList[0].businessId this.unitId = this.unitList[0].businessId
}
}else { }else {
this.unitId = '' this.unitId = ''
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment