From 2795bef55b825acd0065d991e835c5f616ec4724 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Fri, 05 Aug 2022 18:25:35 +0800
Subject: [PATCH] mini消息盒子

---
 src/components/group/MyMessage.vue       |   18 +++++++++++++++++-
 src/components/swichLabel/main1-home.vue |    6 +++++-
 src/components/mini/box2-class.vue       |    2 +-
 3 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/src/components/group/MyMessage.vue b/src/components/group/MyMessage.vue
index 680198b..c5c64af 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>
@@ -82,6 +88,16 @@
 				this.$message.info("拉取信息中..")
 				this.loadData()
 			},
+			reload() {
+				this.$message.info("重新拉取信息..")
+				this.pageNo = 1;
+				this.pageSize = 5;
+				this.showButton = true;
+				this.dataList = [];
+				setTimeout(() => {
+					this.loadData()
+				}, 100);
+			},
 			loadData() {
 				this.refresh = true;
 				setTimeout(() => {
diff --git a/src/components/mini/box2-class.vue b/src/components/mini/box2-class.vue
index 2426d1f..00e7437 100644
--- a/src/components/mini/box2-class.vue
+++ b/src/components/mini/box2-class.vue
@@ -35,7 +35,7 @@
 	} from '../../api/blogArticleType.js'
 	export default {
 		beforeMount() {
-			this.$message.info('loading', 0.3);
+			//this.$message.info('loading', 0.3);
 			queryBlogArticleType({}).then((res) => {
 				this.list1 = res.data.slice(0, 3)
 				if (res.data.length >= 3)
diff --git a/src/components/swichLabel/main1-home.vue b/src/components/swichLabel/main1-home.vue
index b582c5e..8fb8274 100644
--- a/src/components/swichLabel/main1-home.vue
+++ b/src/components/swichLabel/main1-home.vue
@@ -30,6 +30,9 @@
 							<a-button @click="showDrawer" style="padding:0px 10px">
 								<a-icon type="left-circle" />
 							</a-button>
+							<a-button @click="showMessage" style="margin-top:10px;padding:0px 10px">
+								<a-icon type="message" />
+							</a-button>
 						</a-affix>
 					</a-col>
 					<keep-alive>
@@ -40,7 +43,8 @@
 				</a-col>
 
 				<a-col v-bind="colApiRight">
-					<tool @showModal="showModal" @showPreview="showPreview" @showScreen="showScreen" @showMessage="showMessage" />
+					<tool @showModal="showModal" @showPreview="showPreview" @showScreen="showScreen"
+						@showMessage="showMessage" />
 				</a-col>
 			</a-row>
 		</div>

--
Gitblit v1.9.1