chore: 更新codegen

This commit is contained in:
dap
2024-09-26 11:35:16 +08:00
parent 8d4378ad7f
commit 62e7cc6e7b
3 changed files with 10 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ const routes = useRoute();
// 获取路由参数
const tableId = routes.params.tableId as string;
const genInfoData = ref<GenInfo>();
const genInfoData = ref<GenInfo['info']>();
provide('genInfoData', genInfoData);
@@ -30,7 +30,7 @@ onMounted(async () => {
const resp = await genInfo(tableId);
// 需要做菜单转换 严格相等 才能选中回显
resp.info.parentMenuId = safeParseNumber(resp.info.parentMenuId);
genInfoData.value = resp;
genInfoData.value = resp.info;
setTabTitle(`生成配置: ${resp.info.tableName}`);
});