From 920d34a20109cbec85e10b0345baea8723b36352 Mon Sep 17 00:00:00 2001 From: y505174330 <505174330@qq.com> Date: 星期六, 18 五月 2024 17:21:50 +0800 Subject: [PATCH] 1 --- src/pages/character/index.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/character/index.vue b/src/pages/character/index.vue index b2ce438..8f7acbe 100644 --- a/src/pages/character/index.vue +++ b/src/pages/character/index.vue @@ -28,10 +28,10 @@ </view> <view class="" style="margin-left: 0.2rem">涔︿腑鏈�甯告彁鍒扮殑100浣嶄汉鐗�</view> <!-- 鍏崇郴琛ㄥ湴鍥� --> - <view - id="relation" - style="margin-top: 0.2rem; height: 70vh; width: 100%" - ></view> + <view id="relation" style="margin-top: 0.2rem; height: 70vh; width: 100%;position: relative;" + ><div v-if="!loading && relationships.length == 0" style="position: absolute;top: 30%;left: 0;right: 0;text-align: center;font-size: 0.20rem;color: #666;">鏆傛棤鐩稿叧鏁版嵁</div></view + > + <!-- 鏈濅唬 --> <view class="flex flex-center" @@ -87,6 +87,7 @@ export default { data() { return { + loading: true, // echarts鏁版嵁 nodes: [], // echarts涓よ�呯殑鍏崇郴 @@ -309,6 +310,7 @@ this.relationships.push(obj); }); } + this.loading = false; this.relation(); }); }, -- Gitblit v1.9.1