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({