mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-14 21:36:45 +08:00
细节
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user