From 146176c4bfc7e936026fc02d96fdc175738d9e14 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Tue, 09 Aug 2022 19:04:51 +0800
Subject: [PATCH] 我的音乐模块优化啊

---
 src/components/group/MyMessage.vue |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/src/components/group/MyMessage.vue b/src/components/group/MyMessage.vue
index 680198b..fca7967 100644
--- a/src/components/group/MyMessage.vue
+++ b/src/components/group/MyMessage.vue
@@ -24,7 +24,8 @@
 							</template>
 							<template #title>
 								在
-								<router-link to="/comment" v-if="item.commentType==1" @click.native="handleCancel()">碎碎念
+								<router-link to="/comment" @click.native="handleCancel()" v-if="item.commentType==1">
+									{{item.articleTitle}}
 								</router-link>
 								<router-link :to="{path:'/mdDetail',query:{id:item.articleId}}"
 									:title="item.articleTitle" @click.native="handleCancel()" v-else>
@@ -47,6 +48,11 @@
 						<a-button disabled v-else>
 							更多记录就不展示啦..
 						</a-button>
+						<span style="margin: 20px;">
+							<a-button @click="reload" :disabled="refresh">
+								<a-icon type="redo" />
+							</a-button>
+						</span>
 					</div>
 				</template>
 			</a-list>
@@ -68,7 +74,7 @@
 				visible: false,
 				loading: false,
 				pageNo: 1,
-				pageSize: 5,
+				pageSize: 4,
 				showButton: true,
 				refresh: false,
 			}
@@ -81,6 +87,16 @@
 			loadMore() {
 				this.$message.info("拉取信息中..")
 				this.loadData()
+			},
+			reload() {
+				this.$message.info("重新拉取信息..")
+				this.pageNo = 1;
+				this.pageSize = 4;
+				this.showButton = true;
+				this.dataList = [];
+				setTimeout(() => {
+					this.loadData()
+				}, 100);
 			},
 			loadData() {
 				this.refresh = true;
@@ -127,12 +143,6 @@
 
 	}
 
-	.myhiden {
-		display: -webkit-container;
-		-webkit-line-clamp: 3;
-		text-overflow: ellipsis;
-		overflow: hidden;
-	}
 
 	a {
 		color: black;

--
Gitblit v1.9.1