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