|
|
@@ -49,7 +49,7 @@
|
|
|
:image="item.thumbnail || item.image || AppCofig.defaultImage"
|
|
|
:title="item.title"
|
|
|
:desc="item.desc"
|
|
|
- :badge="item.badge"
|
|
|
+ :tags="item.bottomTags"
|
|
|
:wideImage="true"
|
|
|
@click="goDetails(item.id)"
|
|
|
/>
|
|
|
@@ -104,7 +104,16 @@ const recommendListLoader = useSimpleDataLoader(async () => {
|
|
|
return (await CommonContent.getContentList(new GetContentListParams()
|
|
|
.setModelId(querys.value.modelId)
|
|
|
.setMainBodyColumnId(querys.value.mainBodyColumnId)
|
|
|
- , 1, 10)).list.filter((p) => p.id !== querys.value.id);
|
|
|
+ , 1, 10)).list
|
|
|
+ .filter((p) => p.id !== querys.value.id)
|
|
|
+ .map((p) => ({
|
|
|
+ ...p,
|
|
|
+ desc: (p.from ? `来源:${p.from}` : '') + (p.desc ? ` ${p.desc}` : ''),
|
|
|
+ bottomTags: [
|
|
|
+ p.mainBodyColumnName,
|
|
|
+ p.levelText,
|
|
|
+ ] as string[],
|
|
|
+ }));
|
|
|
});
|
|
|
|
|
|
const emptyContent = computed(() => (loader.content.value?.content || '').trim() === '')
|