|
@@ -229,33 +229,33 @@ const carousel2Config = {
|
|
|
}
|
|
}
|
|
|
const carousel6Ref = ref<any>(null);
|
|
const carousel6Ref = ref<any>(null);
|
|
|
|
|
|
|
|
-const bannerData = await useSSrSimpleDataLoader('banner', async () => {
|
|
|
|
|
|
|
+const bannerData = await useSSrSimpleDataLoader('index-banner', async () => {
|
|
|
return (await IndexContent.getBanner()).map(p => p.toJSON());
|
|
return (await IndexContent.getBanner()).map(p => p.toJSON());
|
|
|
});
|
|
});
|
|
|
-const overviewData = await useSSrSimpleDataLoader('overview', async () => {
|
|
|
|
|
|
|
+const overviewData = await useSSrSimpleDataLoader('index-overview', async () => {
|
|
|
return (await IndexContent.getColumList(new GetColumListParams().setSelfValues({
|
|
return (await IndexContent.getColumList(new GetColumListParams().setSelfValues({
|
|
|
modelId: 17,
|
|
modelId: 17,
|
|
|
mainBodyColumnId: 234,
|
|
mainBodyColumnId: 234,
|
|
|
}))).list[0]?.overview || NO_CONTENT_STRING
|
|
}))).list[0]?.overview || NO_CONTENT_STRING
|
|
|
});
|
|
});
|
|
|
-const recommend1Data = await useSSrSimpleDataLoader('recommend1', async () => {
|
|
|
|
|
|
|
+const recommend1Data = await useSSrSimpleDataLoader('index-recommend1', async () => {
|
|
|
return (await UnmoveableContent.getContentList(new GetContentListParams(), 1, 9)).list.map(p => p.toJSON());
|
|
return (await UnmoveableContent.getContentList(new GetContentListParams(), 1, 9)).list.map(p => p.toJSON());
|
|
|
});
|
|
});
|
|
|
-const recommend2Data = await useSSrSimpleDataLoader('recommend2', async () => {
|
|
|
|
|
|
|
+const recommend2Data = await useSSrSimpleDataLoader('index-recommend2', async () => {
|
|
|
return (await ProjectsContent.getContentList(new GetContentListParams().setMainBodyColumnId([]), 1, 9)).list.map(p => p.toJSON());
|
|
return (await ProjectsContent.getContentList(new GetContentListParams().setMainBodyColumnId([]), 1, 9)).list.map(p => p.toJSON());
|
|
|
});
|
|
});
|
|
|
-const recommend3Data = await useSSrSimpleDataLoader('recommend3', async () => {
|
|
|
|
|
|
|
+const recommend3Data = await useSSrSimpleDataLoader('index-recommend3', async () => {
|
|
|
return (await CommonContent.getContentList(new GetContentListParams()
|
|
return (await CommonContent.getContentList(new GetContentListParams()
|
|
|
.setModelId(17)
|
|
.setModelId(17)
|
|
|
.setMainBodyColumnId(273)
|
|
.setMainBodyColumnId(273)
|
|
|
, 1, 8)).list.map(p => p.toJSON());
|
|
, 1, 8)).list.map(p => p.toJSON());
|
|
|
});
|
|
});
|
|
|
-const newsData = await useSSrSimpleDataLoader('news', async () => {
|
|
|
|
|
|
|
+const newsData = await useSSrSimpleDataLoader('index-news', async () => {
|
|
|
return (await NewsIndexContent.getContentList(new GetContentListParams()
|
|
return (await NewsIndexContent.getContentList(new GetContentListParams()
|
|
|
.setMainBodyColumnId([ 228/* , 298, 299 */ ])
|
|
.setMainBodyColumnId([ 228/* , 298, 299 */ ])
|
|
|
, 1, 9)).list.map(p => p.toJSON());
|
|
, 1, 9)).list.map(p => p.toJSON());
|
|
|
});
|
|
});
|
|
|
-const recordData = await useSSrSimpleDataLoader('record', async () => {
|
|
|
|
|
|
|
+const recordData = await useSSrSimpleDataLoader('index-record', async () => {
|
|
|
return (await CommonContent.getContentList(new GetContentListParams()
|
|
return (await CommonContent.getContentList(new GetContentListParams()
|
|
|
.setSelfValues({
|
|
.setSelfValues({
|
|
|
order: 'publish_at',
|
|
order: 'publish_at',
|