mirror of
				https://github.com/yzcheng90/x-springboot-ui
				synced 2025-11-04 13:45:49 +08:00 
			
		
		
		
	Update template.vue
This commit is contained in:
		@@ -171,6 +171,15 @@ export default {
 | 
			
		||||
        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) {
 | 
			
		||||
      if (type === 'edit') {
 | 
			
		||||
        this.state.submitBtn.type = 'edit';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user