feat: show loading message when update theme.

pull/3445/head
ruibaby 2019-12-18 17:51:33 +08:00
parent 2d8fe1d079
commit 8d96fbe19b
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()
})