Обновление 1.0

This commit is contained in:
brusnitsyn
2025-12-29 17:08:26 +09:00
parent c5c1a2b3e1
commit 56be95caa4
9 changed files with 191 additions and 66 deletions

View File

@@ -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,