From b93fc39b00a2154d0b485eb7b1cae4c06031b8c6 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Thu, 28 Mar 2019 12:44:27 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B0=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/App.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/components/App.vue b/client/components/App.vue index 7cb8b160..a568a3a9 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -113,10 +113,13 @@ class App extends Vue { this.dispatch('config/loadConfig'); this.$watch('apiError', function(newError) { if (newError) { + let mes = newError.message; + if (newError.response && newError.response.config) + mes = newError.response.config.url + '
' + newError.response.statusText; this.$notify.error({ title: 'Ошибка API', dangerouslyUseHTMLString: true, - message: newError.response.config.url + '
' + newError.response.statusText + message: mes }); } });