修复bug

This commit is contained in:
weipengfei 2024-03-19 17:24:14 +08:00
parent 349176e2d5
commit b4cd11f33f

View File

@ -313,11 +313,14 @@
this.getNav();
if (this.isLogin == true) {
if(this.$store.state.app.userInfo.mer_info.mer_settlement_agree_status) this.tabsArr.push({
name: '商户购物车',
val: 2
})
else this.getUserInfo();
try{
if(this.$store.state.app.userInfo.mer_info.mer_settlement_agree_status&&this.tabsArr.length==1) this.tabsArr.push({
name: '商户购物车',
val: 2
})
}catch(e){
this.getUserInfo();
}
this.getCartList();
this.getCartNum();
this.goodsHidden = true;
@ -362,7 +365,7 @@
let that = this;
getUserInfo().then(res => {
that.userInfo = res.data;
if(res.data.mer_info.mer_settlement_agree_status) this.tabsArr.push({
if(res.data.mer_info.mer_settlement_agree_status&&this.tabsArr.length==1) this.tabsArr.push({
name: '商户购物车',
val: 2
})