From f74166b3ed257a5e7f463019de3a7a90dae69c2b Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 22 十一月 2022 10:33:45 +0800 Subject: [PATCH] 调整比对库代码,处理选中bug --- src/pages/library/components/carList.vue | 1 + src/pages/library/index/App.vue | 1 - src/pages/library/components/baseList.vue | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/library/components/baseList.vue b/src/pages/library/components/baseList.vue index 9a70af5..f783270 100644 --- a/src/pages/library/components/baseList.vue +++ b/src/pages/library/components/baseList.vue @@ -232,10 +232,12 @@ defaultShow() { if (this.syncTableList && this.syncTableList.length) { this.clickCategory(0, "sync", this.syncTableList[0]); - } else { + } else if (this.localTableList && this.localTableList.length) { this.clickCategory(0, "local", this.syncTableList[0]); } + else { + console.log("this.localTableList.length",this.localTableList.length) } }, // 娣诲姞鏃堕棿姣旇緝鍑芥暟 diff --git a/src/pages/library/components/carList.vue b/src/pages/library/components/carList.vue index 0a36390..3145d9b 100644 --- a/src/pages/library/components/carList.vue +++ b/src/pages/library/components/carList.vue @@ -152,6 +152,7 @@ :key="index" > <img + v-if="item.url.length" style="width: 100px; height: 100px; object-fit: contain" :src="item.url" alt diff --git a/src/pages/library/index/App.vue b/src/pages/library/index/App.vue index e6a0954..2c6faae 100644 --- a/src/pages/library/index/App.vue +++ b/src/pages/library/index/App.vue @@ -98,7 +98,6 @@ }, methods: { getPersonList(item, type) { - console.log(123); console.log(item); console.log(type); -- Gitblit v1.8.0