feat: 代码生成
This commit is contained in:
25
apps/web-antd/src/views/tool/gen/edit-steps/gen-success.vue
Normal file
25
apps/web-antd/src/views/tool/gen/edit-steps/gen-success.vue
Normal 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>
|
Reference in New Issue
Block a user