列表bug
This commit is contained in:
@@ -133,6 +133,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tabClick(item,index) {
|
tabClick(item,index) {
|
||||||
|
this.list = []
|
||||||
|
this.current = 1
|
||||||
this.tabIndex = index;
|
this.tabIndex = index;
|
||||||
this.sendType = item.value
|
this.sendType = item.value
|
||||||
uni.removeStorageSync('userSelect')
|
uni.removeStorageSync('userSelect')
|
||||||
@@ -162,7 +164,6 @@ export default {
|
|||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let url = ''
|
let url = ''
|
||||||
this.list = []
|
|
||||||
let data = {
|
let data = {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
taskTitle: this.taskTitle,
|
taskTitle: this.taskTitle,
|
||||||
@@ -182,7 +183,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$http.post(url,null, {params:{...data}}).then(res=> {
|
this.$http.post(url,null, {params:{...data}}).then(res=> {
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
this.list = this.current == 1? res.data.records : [...this.list,...res.data.records]
|
this.list = this.current == 1? res.data.records : [...this.list, ...res.data.records]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user