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

This commit is contained in:
LiuHao 2023-04-17 21:39:21 +08:00
parent c32e3ce2c9
commit 2ede1095a3

View File

@ -176,7 +176,8 @@ const close = () => {
const tableId = route.params && route.params.tableId as string; const tableId = route.params && route.params.tableId as string;
if (tableId) { 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; columns.value = res.data.rows;
info.value = res.data.info; info.value = res.data.info;
tables.value = res.data.tables; tables.value = res.data.tables;