diff --git a/src/views/infra/codegen/components/PreviewModal.vue b/src/views/infra/codegen/components/PreviewModal.vue index b0810d5d..70b54efa 100644 --- a/src/views/infra/codegen/components/PreviewModal.vue +++ b/src/views/infra/codegen/components/PreviewModal.vue @@ -5,6 +5,7 @@ 复制 -
{{ item.code }}
+
@@ -28,6 +29,7 @@ import { ref, unref } from 'vue' import { Card, Tabs } from 'ant-design-vue' import { BasicTree } from '@/components/Tree' import { BasicModal, useModalInner } from '@/components/Modal' +import { CodeEditor, MODE } from '@/components/CodeEditor' import { previewCodegen } from '@/api/infra/codegen' import { CodegenPreviewVO } from '@/api/infra/codegen/types' import { handleTree2 } from '@/utils/tree' @@ -42,6 +44,7 @@ const { createMessage } = useMessage() const fileTree = ref([]) const activeKey = ref('') +const modeValue = ref(MODE.JS) const previewCodes = ref() const [registerModal, { setModalProps }] = useModalInner(async (data) => {