From db2f5ec6d7eeff6d7cc67a846be6e22cf3636edc Mon Sep 17 00:00:00 2001
From: 康凯 <kangk26@foxmail.com>
Date: Mon, 23 May 2022 19:06:04 +0800
Subject: [PATCH] bug:没有内容时,提示“暂无内容”
---
src/views/personage/detailvideo.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/personage/detailvideo.vue b/src/views/personage/detailvideo.vue
index f755c4c..79e0d1a 100644
--- a/src/views/personage/detailvideo.vue
+++ b/src/views/personage/detailvideo.vue
@@ -11,12 +11,12 @@
<mt-tab-item id="2">简介</mt-tab-item>
</mt-navbar>
<mt-tab-container v-model="navIndex">
- <mt-tab-container-item id="1">
- {{ video.keyWord }}
- </mt-tab-container-item>
- <mt-tab-container-item id="2">
- {{ video.introduction }}
- </mt-tab-container-item>
+ <mt-tab-container-item id="1">
+ {{ video.keyWord == ""?"暂无内容": video.keyWord}}
+ </mt-tab-container-item>
+ <mt-tab-container-item id="2">
+ {{ video.introduction == ""?"暂无内容": video.introduction}}
+ </mt-tab-container-item>
</mt-tab-container>
</div>
</div>
--
Gitblit v1.9.3