Forráskód Böngészése

🎨 修改细节问题

快乐的梦鱼 3 napja
szülő
commit
25193228a7
1 módosított fájl, 4 hozzáadás és 3 törlés
  1. 4 3
      src/api/inheritor/InheritorContent.ts

+ 4 - 3
src/api/inheritor/InheritorContent.ts

@@ -527,10 +527,11 @@ export class InheritorContentApi extends AppServerRequestModule<DataModel> {
     super();
   }
 
-  async getBaseInfo<T extends DataModel>(id: number|undefined, newDataModel: new () => T) {
+  async getBaseInfo<T extends DataModel>(id: number|undefined, newDataModel: new () => T, contentId?: number) {
     return (await this.post('/ich/inheritor/baseInfo', {
       model_id: new newDataModel().modelId,
-      content_id: id,
+      id,
+      content_id: contentId,
     }, '基础表信息', undefined, newDataModel)).data as T;
   }
   /**
@@ -690,7 +691,7 @@ export class InheritorContentApi extends AppServerRequestModule<DataModel> {
     return await this.getBaseInfo(id, InheritorInfo);
   }
   async getSeminarInfo(id: number|undefined) {
-    return await this.getBaseInfo(id, SeminarInfo);
+    return await this.getBaseInfo(undefined, SeminarInfo, id);
   }
   async getIchExpandInfo(id: number|undefined) {
     return await this.getExpandInfo(id, IchExpandInfo);