Explorar el Código

Use ajax error handler

sbkwgh hace 8 años
padre
commit
eb6eefc9de
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/components/ReplyingTo.vue

+ 2 - 0
src/components/ReplyingTo.vue

@@ -21,6 +21,7 @@
 
 <script>
 	import InfoTooltip from './InfoTooltip'
+	import AjaxErrorHandler from '../assets/js/errorHandler'
 
 	export default {
 		name: 'ReplyingTo',
@@ -40,6 +41,7 @@
 					.then((res) => {
 						this.post = res.data
 					})
+					.catch(AjaxErrorHandler(this.$store))
 			}
 		}
 	}