From c89544954db0254978c1fabcb175d622db28551c Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期一, 30 三月 2026 08:14:39 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 uni_modules/uni-tag/components/uni-tag/uni-tag.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/uni_modules/uni-tag/components/uni-tag/uni-tag.vue b/uni_modules/uni-tag/components/uni-tag/uni-tag.vue
index 418c955..57d8e0a 100644
--- a/uni_modules/uni-tag/components/uni-tag/uni-tag.vue
+++ b/uni_modules/uni-tag/components/uni-tag/uni-tag.vue
@@ -1,5 +1,5 @@
 <template>
-	<text class="uni-tag" v-if="text" :class="classes" :style="customStyle" @click="onClick">{{text}}</text>
+	<text class="uni-tag" v-if="showTag" :class="classes" :style="customStyle" @click="onClick">{{text}}</text>
 </template>
 
 <script>
@@ -69,6 +69,9 @@
 			}
 		},
 		computed: {
+			showTag() {
+				return !!this.text.toString()
+			},
 			classes() {
 				const {
 					type,
@@ -249,4 +252,4 @@
 			font-size: 12px;
 		}
 	}
-</style>
+</style>
\ No newline at end of file

--
Gitblit v1.9.1