This commit is contained in:
zhangsir
2024-06-25 11:30:12 +08:00
parent c590f09477
commit 4d22fa5c4c
2 changed files with 65 additions and 13 deletions

View File

@@ -94,6 +94,7 @@
this.startList = res.data
if(res.code == 200 ){
this.posiLists = res.data
this.indexs.push(0)
if(this.posiLists.length > 9){
this.posiLists = this.posiLists.slice(0, 9)
}
@@ -114,6 +115,9 @@
this.isTrue = true
},
searchItem(item,index){
if(index == 0){
return
}
const indexToRemove = this.indexs.indexOf(index);
if (indexToRemove !== -1) {
this.indexs.splice(indexToRemove, 1);