From 8a777abcffb3611582272ec1c669a10cb0c0fd59 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Tue, 28 Mar 2023 09:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/newindex.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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) },