refactor: натравил форматтер на весь фронт
This commit is contained in:
@@ -12,7 +12,11 @@ const route = useRoute()
|
||||
|
||||
const isAuthPage = computed(() => Boolean(route.meta.public))
|
||||
|
||||
interface Toast { id: number; message: string; type: 'success' | 'error' | 'info' }
|
||||
interface Toast {
|
||||
id: number
|
||||
message: string
|
||||
type: 'success' | 'error' | 'info'
|
||||
}
|
||||
const toasts = ref<Toast[]>([])
|
||||
let toastId = 0
|
||||
|
||||
@@ -21,7 +25,7 @@ function addToast(msg: string, type: Toast['type'] = 'success') {
|
||||
}
|
||||
|
||||
function removeToast(id: number) {
|
||||
toasts.value = toasts.value.filter(t => t.id !== id)
|
||||
toasts.value = toasts.value.filter((t) => t.id !== id)
|
||||
}
|
||||
|
||||
// expose globally via provide
|
||||
|
||||
Reference in New Issue
Block a user