diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 9d1a979c..8548a0bf 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -128,12 +128,12 @@ title="上传附件" v-model="uploadVisible" :footer="null" + :afterClose="onUploadClose" >

@@ -223,10 +223,6 @@ export default { this.selectAttachment = attachment this.drawerVisiable = true }, - handleUploadSuccess() { - this.loadAttachments() - this.loadMediaTypes() - }, handlePaginationChange(page, size) { this.$log.debug(`Current: ${page}, PageSize: ${size}`) this.pagination.page = page @@ -242,6 +238,10 @@ export default { handleQuery() { this.queryParam.page = 0 this.loadAttachments() + }, + onUploadClose(){ + this.loadAttachments() + this.loadMediaTypes() } } } diff --git a/src/views/attachment/components/AttachmentDrawer.vue b/src/views/attachment/components/AttachmentDrawer.vue index f883b724..bc052d1f 100644 --- a/src/views/attachment/components/AttachmentDrawer.vue +++ b/src/views/attachment/components/AttachmentDrawer.vue @@ -69,13 +69,12 @@ title="上传附件" v-model="uploadVisible" :footer="null" + :afterClose="onUploadClose" >

@@ -183,8 +182,8 @@ export default { this.pagination.size = pageSize this.loadAttachments() }, - handleAttachmentUploadSuccess() { - this.$message.success('上传成功!') + onUploadClose() { + this.loadSkeleton() this.loadAttachments() }, handleDelete() { diff --git a/src/views/attachment/components/AttachmentSelectDrawer.vue b/src/views/attachment/components/AttachmentSelectDrawer.vue index 3883c44f..8bddba89 100644 --- a/src/views/attachment/components/AttachmentSelectDrawer.vue +++ b/src/views/attachment/components/AttachmentSelectDrawer.vue @@ -60,13 +60,12 @@ title="上传附件" v-model="uploadVisible" :footer="null" + :afterClose="onUploadClose" >

@@ -160,7 +159,8 @@ export default { this.$message.success('上传成功!') this.loadAttachments() }, - handleDelete() { + onUploadClose() { + this.loadSkeleton() this.loadAttachments() }, onClose() { diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index 2997f544..32a7b733 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -1,33 +1,63 @@