From 007fb0ffc699e604fba4961666fc58b766f7fdbb Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Wed, 28 Jun 2023 13:17:40 +0800 Subject: [PATCH] update index/index.vue --- .../linfeng-community-uniapp-ky/pages/index/index.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue index d3e2daa..fe4167a 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue @@ -31,7 +31,7 @@ loadStatus2: 'loadmore', page1: 1, page2: 1, - shareCover: '',//分享封面 + shareCover: '', //分享封面 followUserPost: [], lastPost: [], tabList: [{ @@ -59,9 +59,7 @@ if (this.current === 0) { this.page1++; this.getFollowUserPost(); - } - - if (this.current === 1) { + } else if (this.current === 1) { this.page2++; this.getLastPost(); } @@ -71,8 +69,7 @@ this.page1 = 1; this.followUserPost = []; this.getFollowUserPost(); - } - if (this.current === 1) { + } else if (this.current === 1) { this.page2 = 1; this.lastPost = []; this.getLastPost(); @@ -146,4 +143,4 @@ page { background-color: #F5F5F5; } - + \ No newline at end of file