Обновление 1.0
This commit is contained in:
@@ -14,13 +14,15 @@ export function useNotification() {
|
||||
|
||||
}
|
||||
|
||||
const errorApi = (data, content = '', options = {}) => {
|
||||
const errorApi = (data, content = null, options = {}) => {
|
||||
return showNotification(
|
||||
{
|
||||
title: 'Произошла ошибка',
|
||||
description: `Код: ${data.code}\nURL: ${data.response.config.url}\nМетод: ${data.response.config.method.toUpperCase()}`,
|
||||
description: data
|
||||
? `Код: ${data.code}\nURL: ${data.response.config.url}\nМетод: ${data.response.config.method.toUpperCase()}`
|
||||
: null,
|
||||
content: () => {
|
||||
return h(
|
||||
return content ? content : h(
|
||||
NLog,
|
||||
{
|
||||
rows: 4,
|
||||
|
||||
Reference in New Issue
Block a user