浏览代码

fix 代码生成-生成信息-上级菜单的数据回显问题

LiuHao 2 年之前
父节点
当前提交
2ede1095a3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/tool/gen/editTable.vue

+ 2 - 1
src/views/tool/gen/editTable.vue

@@ -176,7 +176,8 @@ const close = () => {
     const tableId = route.params && route.params.tableId as string;
     if (tableId) {
         // 获取表详细信息
-        const res = await getGenTable(tableId);
+      const res = await getGenTable(tableId);
+        res.data.info.parentMenuId = Number(res.data.info.parentMenuId);
         columns.value = res.data.rows;
         info.value = res.data.info;
         tables.value = res.data.tables;