From 751220d22bd952a0fed74db124a2b6c3e9d9ac69 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Thu, 8 May 2025 14:19:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=87=E6=9C=AC=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E3=80=81=E5=88=9B=E5=BB=BA=E6=96=87=E4=BB=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E8=B0=83=E6=95=B4=E9=80=9A=E7=94=A8=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=B8=83=E5=B1=80=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E4=BF=AE=E6=94=B9=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=8F=8A=E7=99=BB=E5=BD=95=E6=9C=80=E9=95=BF?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/gen-chat.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/system/gen-chat.vue b/src/views/system/gen-chat.vue index eb510c8..8bed130 100644 --- a/src/views/system/gen-chat.vue +++ b/src/views/system/gen-chat.vue @@ -1005,6 +1005,10 @@ const getFileListData = async () => { const HandleTextToDocFile = async () => { // 处理文本创建文件的逻辑 //console.log("文本创建文件:", textToDocFileName.value, vditor.value.getValue(), selectFileDocType.value); + if (textToDocFileName.value.trim() === "") { + ElMessage.warning("文件名不能为空"); + return; + } let req = { token: localStorage.getItem("token"), file_name: textToDocFileName.value,