diff --git a/pages/index/newindex.vue b/pages/index/newindex.vue index fddfd53..13c16e2 100644 --- a/pages/index/newindex.vue +++ b/pages/index/newindex.vue @@ -153,11 +153,6 @@ }, jump(e) { - console.log(e.router) - uni.navigateTo({ - url: e.router, - }) - return if (this.user.authList.includes(e.lable)) { uni.navigateTo({ url: e.router, @@ -201,10 +196,8 @@ this.$set(this.collection,isHaveEmptyIndex,item) return } - if(this.collection.length === 3) { - //如果收藏满了 栈底推出 - this.collection.pop() - } + //如果收藏满了 栈底推出 + this.collection.pop() //栈顶推入 this.collection.unshift(item) },