瀏覽代碼

improve: 代码生成删除判断

From-wh 2 年之前
父節點
當前提交
487909a894
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      template/admin/src/pages/system/codeGeneration/components/TableForm.vue

+ 1 - 1
template/admin/src/pages/system/codeGeneration/components/TableForm.vue

@@ -77,7 +77,7 @@
           <div v-else>--</div>
         </template>
         <template slot-scope="{ row, index }" slot="action">
-          <a v-if="!foundation.primaryKey" @click="del(row, index)">删除</a>
+          <a v-if="!tableField[index].primaryKey" @click="del(row, index)">删除</a>
           <span v-else>--</span>
         </template>
       </Table>