Compare commits

...

2 Commits

Author SHA1 Message Date
RenCheng
24f4dd7dec 修改89 2025-05-28 21:33:25 +08:00
RenCheng
053d840c95 修改90 92 2025-05-28 21:31:43 +08:00
3 changed files with 6 additions and 1 deletions

View File

@ -357,6 +357,10 @@ export default {
}, },
hideModal() { hideModal() {
this.isopen = false this.isopen = false
if (this.dirName.length <= 0) {
this.$message.warning('目录名不能为空')
return
}
switch (this.modelType) { switch (this.modelType) {
case 'create': case 'create':
createDir({ pid: this.selectId, dirName: this.dirName }).then((res) => { createDir({ pid: this.selectId, dirName: this.dirName }).then((res) => {

View File

@ -16,7 +16,7 @@
:box-height="50" :box-height="50"
:max-file="999999" :max-file="999999"
:can-download="false" :can-download="false"
accept=".txt,.doc,.docx,.xls,.xlsx,.wps,.et,.csv,.xml,.json,.mp3,.mp4,.avi,.wmv,.jpg,.bmp,.png" accept=".txt,.doc,.docx,.xls,.xlsx,.wps,.et,.csv,.xml,.json,.mp3,.mp4,.avi,.wmv,.jpg,.bmp,.png,.sql,.db,.dmp"
/> />
</a-spin> </a-spin>
</a-modal> </a-modal>

View File

@ -186,6 +186,7 @@
this.$message.warning(res.message); this.$message.warning(res.message);
} }
}); });
this.loadData()
this.$refs.modalForm.open(); this.$refs.modalForm.open();
}, },
initWebSocket: function () { initWebSocket: function () {