feat: show loading message when update theme.

pull/59/head
ruibaby 2019-12-18 17:51:33 +08:00
parent 2e98027d63
commit 0d6247d3fc
1 changed files with 2 additions and 0 deletions

View File

@ -299,7 +299,9 @@ export default {
})
},
handleUpdateTheme(themeId) {
const hide = this.$message.loading('更新中...', 0)
themeApi.update(themeId).then(response => {
hide()
this.$message.success('更新成功!')
this.loadThemes()
})