Мелкая поправка

This commit is contained in:
Book Pauk
2019-03-28 12:44:27 +07:00
parent 2dc2cd700f
commit b93fc39b00

View File

@@ -113,10 +113,13 @@ class App extends Vue {
this.dispatch('config/loadConfig'); this.dispatch('config/loadConfig');
this.$watch('apiError', function(newError) { this.$watch('apiError', function(newError) {
if (newError) { if (newError) {
let mes = newError.message;
if (newError.response && newError.response.config)
mes = newError.response.config.url + '<br>' + newError.response.statusText;
this.$notify.error({ this.$notify.error({
title: 'Ошибка API', title: 'Ошибка API',
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
message: newError.response.config.url + '<br>' + newError.response.statusText message: mes
}); });
} }
}); });