From c128d3ee7f677606c70e55963d29409795aaf1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99=E9=83=BD=E6=B2=A1=E7=94=A8?= <615206459@qq.com> Date: Sat, 13 Jul 2024 20:22:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/helper/views/ai-code.vue | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/modules/helper/views/ai-code.vue b/src/modules/helper/views/ai-code.vue index 2344b9c..3793dfa 100644 --- a/src/modules/helper/views/ai-code.vue +++ b/src/modules/helper/views/ai-code.vue @@ -235,7 +235,10 @@ height="100%" :border="false" :options="{ - theme: 'ai-code--dark' + theme: 'ai-code--dark', + minimap: { + enabled: true + } }" :key="activeCode.value" :language="activeCode.value == 'vue' ? 'html' : lang.tpl" @@ -1036,13 +1039,15 @@ function createFile() { service .request({ - url: "/" + url: "/admin/base/open/eps" }) - .then(() => { - code.tips("文件创建成功"); - ElMessage.success("文件创建成功"); - clearInterval(timer); - create(); + .then((res) => { + if (res && !isEmpty(res)) { + code.tips("文件创建成功"); + ElMessage.success("文件创建成功"); + clearInterval(timer); + create(); + } }); }, 3000); })