feat: code generator

This commit is contained in:
dap
2024-09-23 22:11:31 +08:00
parent 07e9483c91
commit 054fbf72cd
9 changed files with 478 additions and 33 deletions

View File

@@ -0,0 +1,26 @@
<script setup lang="ts">
import { onMounted } from 'vue';
import { useRoute } from 'vue-router';
import { Page } from '@vben/common-ui';
import { useTabs } from '@vben/hooks';
import { genInfo } from '#/api/tool/gen';
const { setTabTitle } = useTabs();
const routes = useRoute();
const tableId = routes.params.tableId as string;
onMounted(async () => {
const resp = await genInfo(tableId);
console.log(resp);
setTabTitle(`生成配置: ${resp.info.tableName}`);
});
</script>
<template>
<Page>
<div>修改代码生成</div>
{{ tableId }}
</Page>
</template>