Refactor codes.

pull/3445/head
ruibaby 2019-05-11 00:19:54 +08:00
parent 82cbb0d589
commit 2b2c4f4a88
2 changed files with 3 additions and 12 deletions

View File

@ -213,7 +213,7 @@
>保存</a-button> >保存</a-button>
<a-button <a-button
type="dashed" type="dashed"
@click="handleShowAttachDrawer" @click="()=>this.attachmentDrawerVisible = true"
style="margin-left: 8px;" style="margin-left: 8px;"
>附件库</a-button> >附件库</a-button>
</footer-tool-bar> </footer-tool-bar>
@ -236,7 +236,7 @@
<a <a
rel="noopener noreferrer" rel="noopener noreferrer"
href="javascript:void(0);" href="javascript:void(0);"
@click="handleShowUploadModal" @click="()=>this.uploadVisible = true"
>安装主题</a> >安装主题</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
@ -382,12 +382,6 @@ export default {
this.themeConfiguration = null this.themeConfiguration = null
this.themeProperty = null this.themeProperty = null
}, },
handleShowUploadModal() {
this.uploadVisible = true
},
handleShowAttachDrawer() {
this.attachmentDrawerVisible = true
},
handleChange(info) { handleChange(info) {
const status = info.file.status const status = info.file.status
if (status === 'done') { if (status === 'done') {

View File

@ -192,7 +192,7 @@
closable closable
:visible="commentVisiable" :visible="commentVisiable"
destroyOnClose destroyOnClose
@close="onCommentDrawerClose" @close="()=>this.commentVisiable = false"
> >
<a-row <a-row
type="flex" type="flex"
@ -352,9 +352,6 @@ export default {
resetParam() { resetParam() {
this.queryParam.keyword = null this.queryParam.keyword = null
this.loadJournals() this.loadJournals()
},
onCommentDrawerClose() {
this.commentVisiable = false
} }
} }
} }