diff --git a/frontend/src/components/BugTemplateSelector.vue b/frontend/src/components/BugTemplateSelector.vue index 776cbe5..3c73dac 100644 --- a/frontend/src/components/BugTemplateSelector.vue +++ b/frontend/src/components/BugTemplateSelector.vue @@ -71,10 +71,6 @@ export default { onDelete () { this.$store.dispatch('deleteCache', this.selectedCache) this.isShownDeleteModal = false - }, - onClear () { - this.$store.commit('setSelectedCache', '') - this.$store.dispatch('loadTemplate') } }, computed: { diff --git a/frontend/src/store/form.js b/frontend/src/store/form.js index dbde0e5..51d762c 100644 --- a/frontend/src/store/form.js +++ b/frontend/src/store/form.js @@ -218,6 +218,7 @@ export default { commit('setSubmitLock', false) }).catch(error => { bus.$emit('msg.error', 'Submit failed error: ' + error.message) + commit('setSubmitLock', false) }) }, loadAttachment ({ state, commit }) { @@ -364,7 +365,7 @@ export default { .then(response => { if (response.data.code === 1000) { bus.$emit('msg.success', 'Delete success!') - commit('setSelectedCache', '') + commit('setSelectedCache', null) dispatch('loadCacheList') dispatch('loadTemplate') } else {