mirror of https://github.com/halo-dev/halo
fix: the delete theme button could not be clicked. (halo-dev/console#90)
parent
bd8240c85c
commit
e8199d3498
|
@ -76,7 +76,7 @@ export default {
|
|||
page: 1,
|
||||
size: 50,
|
||||
sort: null,
|
||||
total: null
|
||||
total: 1
|
||||
},
|
||||
logQueryParam: {
|
||||
page: 0,
|
||||
|
|
|
@ -291,8 +291,8 @@ export default {
|
|||
hide()
|
||||
})
|
||||
},
|
||||
handleDeleteTheme(key) {
|
||||
themeApi.delete(key).then(response => {
|
||||
handleDeleteTheme(themeId) {
|
||||
themeApi.delete(themeId).then(response => {
|
||||
this.$message.success('删除成功!')
|
||||
this.loadThemes()
|
||||
})
|
||||
|
@ -347,23 +347,25 @@ export default {
|
|||
this.themeSettingVisible = true
|
||||
},
|
||||
handleConfirmDelete(item) {
|
||||
const that = this
|
||||
this.$confirm({
|
||||
title: '提示',
|
||||
maskClosable: true,
|
||||
content: '确定删除【' + item.name + '】主题?',
|
||||
onOk() {
|
||||
this.handleDeleteTheme(item.id)
|
||||
that.handleDeleteTheme(item.id)
|
||||
},
|
||||
onCancel() {}
|
||||
})
|
||||
},
|
||||
handleConfirmUpdate(item) {
|
||||
const that = this
|
||||
this.$confirm({
|
||||
title: '提示',
|
||||
maskClosable: true,
|
||||
content: '确定更新【' + item.name + '】主题?',
|
||||
onOk() {
|
||||
this.handleUpdateTheme(item.id)
|
||||
that.handleUpdateTheme(item.id)
|
||||
},
|
||||
onCancel() {}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue