Commit 355416e1 by cen

fix:默认显示

1 parent 753966c4
......@@ -159,10 +159,11 @@ export default {
this.searchObj = null
this.searchObj = val
console.log(this.searchObj)
if (!this.searchObj.orderStatus) {
if (!this.searchObj.orderStatus && this.searchObj.orderStatus !== 0 && this.searchObj.orderStatus !== '0') {
this.tabIndex = 0
} else {
this.tabIndex = this.tabList.findIndex(item => item.value === this.searchObj.orderStatus)
const index = this.tabList.findIndex(item => item.value == this.searchObj.orderStatus)
if (index !== -1) this.tabIndex = index !== -1 ? index : 0
}
this.search()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!