|
@@ -167,10 +167,18 @@ function handleTabClick(value: number) {
|
|
|
const introdLoader = useSimpleDataLoader(async () => {
|
|
|
const res = await CommonContent.getContentList(new GetContentListParams()
|
|
|
.setModelId(17)
|
|
|
- .setMainBodyColumnId([ 256, 283, 284, ])
|
|
|
+ .setMainBodyColumnId([ 256, 283, 284 ])
|
|
|
, 1, 10);
|
|
|
- const introd1 = await NewsIndexContent.getContentDetail(5922);
|
|
|
- const introd2 = await NewsIndexContent.getContentDetail(5921);
|
|
|
+ const res2 = await CommonContent.getContentList(new GetContentListParams()
|
|
|
+ .setModelId(17)
|
|
|
+ .setMainBodyColumnId([ 234 ])
|
|
|
+ , 1, 10);
|
|
|
+
|
|
|
+ const id1 = res2.list.find(item => item.title.includes('全国'))?.id;
|
|
|
+ const id2 = res2.list.find(item => item.title.includes('厦门市'))?.id;
|
|
|
+
|
|
|
+ const introd1 = id1 ? await NewsIndexContent.getContentDetail(id1) : undefined;
|
|
|
+ const introd2 = id2 ? await NewsIndexContent.getContentDetail(id2) : undefined;
|
|
|
return {
|
|
|
introd1,
|
|
|
introd2,
|