feat: 代码生成

This commit is contained in:
dap
2024-09-24 10:18:07 +08:00
parent 054fbf72cd
commit c3524ab79c
11 changed files with 644 additions and 5 deletions

View File

@@ -0,0 +1,25 @@
<script setup lang="ts">
import { useRouter } from 'vue-router';
import { useTabs } from '@vben/hooks';
import { Result } from 'ant-design-vue';
const { closeCurrentTab } = useTabs();
const router = useRouter();
async function handleClose() {
await closeCurrentTab();
router.push({ path: '/tool/gen', replace: true });
}
</script>
<template>
<Result status="success" title="修改成功">
<template #extra>
<a-button type="primary" @click="handleClose"> 关闭 </a-button>
</template>
</Result>
</template>
<style scoped></style>