Update template.vue

This commit is contained in:
czx
2025-08-19 10:39:49 +08:00
parent 27ef52074c
commit 1db92d4306

View File

@@ -171,6 +171,15 @@ export default {
this.state.tableData.loading = false this.state.tableData.loading = false
}) })
}, },
updateInfo(row) {
useMsgTemplateApi().update(row).then(response => {
this.state.submitBtn.loading = false;
this.closeDialog();
this.fetchData()
}).catch(() => {
this.state.submitBtn.loading = false
})
},
onOpenAddOrEdit(type, row) { onOpenAddOrEdit(type, row) {
if (type === 'edit') { if (type === 'edit') {
this.state.submitBtn.type = 'edit'; this.state.submitBtn.type = 'edit';