From 00e46dcc41d259b33e6c6c9771b7e2fe2ab95401 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Thu, 04 Aug 2022 18:45:58 +0800
Subject: [PATCH] 更新消息盒子

---
 src/components/swichLabel/main1-home.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/components/swichLabel/main1-home.vue b/src/components/swichLabel/main1-home.vue
index 90cac56..b582c5e 100644
--- a/src/components/swichLabel/main1-home.vue
+++ b/src/components/swichLabel/main1-home.vue
@@ -1,7 +1,8 @@
 <template>
 	<div>
-		<MyModal ref="myModal"></MyModal>
-		<MyPreviewModal ref="MyPreviewModal"></MyPreviewModal>
+		<MyModal ref="myModal" />
+		<MyPreviewModal ref="MyPreviewModal" />
+		<MyMessage ref="MyMessage" />
 
 		<div class="blog-drawer">
 			<a-drawer placement="left" :closable="false" :visible="visibleDrawer" :getContainer="'body'"
@@ -39,7 +40,7 @@
 				</a-col>
 
 				<a-col v-bind="colApiRight">
-					<tool @showModal="showModal" @showPreview="showPreview" @showScreen="showScreen" />
+					<tool @showModal="showModal" @showPreview="showPreview" @showScreen="showScreen" @showMessage="showMessage" />
 				</a-col>
 			</a-row>
 		</div>
@@ -53,6 +54,7 @@
 	import tool from "../group/tool.vue"
 	import MyModal from "../group/MyModal.vue"
 	import MyPreviewModal from "../group/MyPreviewModal.vue"
+	import MyMessage from "../group/MyMessage.vue"
 
 	import screenConfig from "../../config/screenConfig.js"
 
@@ -64,6 +66,7 @@
 			tool,
 			MyModal,
 			MyPreviewModal,
+			MyMessage,
 		},
 		methods: {
 			showScreen() {
@@ -84,6 +87,9 @@
 			showPreview() {
 				this.$refs.MyPreviewModal.showModal();
 			},
+			showMessage() {
+				this.$refs.MyMessage.showModal();
+			},
 			afterVisibleChange(val) {},
 			showDrawer() {
 				this.visibleDrawer = true;

--
Gitblit v1.9.1