From 11a959022c5440cb2281a410c402dbf165b141cb Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Mon, 14 Nov 2022 09:40:54 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/DetailsPageconetent.vue | 13 +++++++++---- .../src/views/personalCenter/components/MyApply.vue | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index 5f075b11..dee8e5b0 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -1195,11 +1195,16 @@ arr.sort((a, b) => { return sortArr.indexOf(a) - sortArr.indexOf(b) }) - console.log('arr', arr) - if (Cardsname.value === arr[0]) { - getAppResources2() - } else { + console.log('arr', arr, Cardsname.value) + // if (Cardsname.value === arr[0]) { + // getAppResources2() + // } else { + // changeCards(arr[0]) + // } + if (arr[0]) { changeCards(arr[0]) + } else { + changeCards('应用资源') } if (!mapFlag) { return diff --git a/front/src/views/personalCenter/components/MyApply.vue b/front/src/views/personalCenter/components/MyApply.vue index 842ca3d3..ddfe4210 100644 --- a/front/src/views/personalCenter/components/MyApply.vue +++ b/front/src/views/personalCenter/components/MyApply.vue @@ -376,6 +376,7 @@ // 选择类型 const changeType = (item, index) => { + contentList.data = [] formState.value.name = '' console.log('item, index-----选择类型------->', item, index) numFlag.value = true