lrf 2 年之前
父节点
当前提交
d6427b9692
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/public/ts-template.js

+ 2 - 1
app/public/ts-template.js

@@ -175,7 +175,8 @@ const interfaceContext = (data) => {
   fc.push(`  constructor() {`);
   fc.push(`  constructor() {`);
   fc.push(`    const like_prop = [];`);
   fc.push(`    const like_prop = [];`);
   fc.push(`    const props = [${props}];`);
   fc.push(`    const props = [${props}];`);
-  fc.push(`    super({ like_prop });`);
+  fc.push(`    const mapping = [];`);
+  fc.push(`    super({ like_prop, props, mapping });`);
   fc.push(`  }`);
   fc.push(`  }`);
   for (const col of indexs) {
   for (const col of indexs) {
     const cfc = getInterfaceColumn(col);
     const cfc = getInterfaceColumn(col);