From d12dee0f722e758b698510a9ba883d50f6e1a677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=86=E4=B9=90?= <342503599@qq.com> Date: Thu, 27 Oct 2022 16:35:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9Ebug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/FileList/components/OperationMenu.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/projectFront/fileManage/components/FileList/components/OperationMenu.vue b/src/views/projectFront/fileManage/components/FileList/components/OperationMenu.vue index 4f4d558d..39957cbf 100644 --- a/src/views/projectFront/fileManage/components/FileList/components/OperationMenu.vue +++ b/src/views/projectFront/fileManage/components/FileList/components/OperationMenu.vue @@ -171,9 +171,11 @@ export default { this.$prompt(this.$t('message.fileManage.confirmDeleteTipText2'), this.$t('message.fileManage.createFolder'), { confirmButtonText: /* '确定', */this.$t('message.fileManage.confirm'), cancelButtonText: /* '取消' */this.$t('message.fileManage.cancel'), + inputPattern:/\S/, + inputErrorMessage: '请输入文件夹名称!' }) .then(({ value }) => { - this.createFile(value) + this.createFile(value) }) .catch(() => { this.$message({