feat: 探索数据加载优化

This commit is contained in:
2025-07-27 14:31:16 +08:00
parent 43ae8365a9
commit 7b09a565d8
2 changed files with 9 additions and 11 deletions

View File

@@ -38,9 +38,9 @@
</template> </template>
<template v-else> <template v-else>
<ChatCardOther class="message-item-other" :text="item.msg"> <ChatCardOther class="message-item-other" :text="item.msg">
<OneFeelMK001 :activityList="mainPageDataModel.activityList"/> <OneFeelMK001 v-if="mainPageDataModel.activityList.length > 0" :activityList="mainPageDataModel.activityList"/>
<template v-for="(item) in mainPageDataModel.recommendTheme"> <template v-if="mainPageDataModel.recommendTheme.length > 0" v-for="(item) in mainPageDataModel.recommendTheme">
<OneFeelMK002 :recommendTheme="item"/> <OneFeelMK002 :recommendTheme="item"/>
</template> </template>

View File

@@ -14,15 +14,13 @@
</template> </template>
<script setup> <script setup>
import { defineProps } from 'vue'
const props = defineProps({
recommendTheme: {
defineProps({ type: Object,
recommendTheme: { default: {}
type: Object, }
default: {} })
}
})
</script> </script>