feat: code generator
This commit is contained in:
26
apps/web-antd/src/views/tool/gen/edit-gen.vue
Normal file
26
apps/web-antd/src/views/tool/gen/edit-gen.vue
Normal 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>
|
Reference in New Issue
Block a user