增加前端格式检查配置
This commit is contained in:
@@ -35,7 +35,10 @@ const {
|
||||
resetFilters,
|
||||
setFilterPopover,
|
||||
closeFilterPopover,
|
||||
} = useHomeFilters(publishOptions, computed(() => listings.value))
|
||||
} = useHomeFilters(
|
||||
publishOptions,
|
||||
computed(() => listings.value)
|
||||
)
|
||||
|
||||
const {
|
||||
loading,
|
||||
@@ -104,10 +107,7 @@ const zoneOptions = computed(() => [
|
||||
async function loadHome() {
|
||||
loading.value = true
|
||||
try {
|
||||
const [, config] = await Promise.all([
|
||||
loadListingsPage(true),
|
||||
fetchMobileHomeConfig(),
|
||||
])
|
||||
const [, config] = await Promise.all([loadListingsPage(true), fetchMobileHomeConfig()])
|
||||
announcements.value = config.announcements
|
||||
banners.value = config.banners
|
||||
publishOptions.value = config.publish_options
|
||||
@@ -179,11 +179,7 @@ loadHome()
|
||||
<button type="button" @click="handleResetFilters">重置条件</button>
|
||||
</div>
|
||||
<div v-else v-loading="loading" class="enhanced-desktop-list">
|
||||
<ListingCard
|
||||
v-for="item in listings"
|
||||
:key="item.id"
|
||||
:listing="item"
|
||||
/>
|
||||
<ListingCard v-for="item in listings" :key="item.id" :listing="item" />
|
||||
</div>
|
||||
|
||||
<div v-if="!loading && listings.length" class="infinite-load-state">
|
||||
|
||||
Reference in New Issue
Block a user