How to use VaToast in interceptor #993
Unanswered
JohnniePeixoto
asked this question in
Q&A
Replies: 1 comment 1 reply
-
For now, you can use something like this. That would be great, if we export vaToast from import { getCurrentInstance } from 'vue'
// ...
getCurrentInstance().appContext.config.globalProperties.$vaToast.init({message: error.response.message, color: 'warning'}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I need some help here, i'm trying to call VaToast inside Axios Interceptor, to handle globally some errors..
But how do I import VaToast or how to call it from inside the interceptor?
something like:
Beta Was this translation helpful? Give feedback.
All reactions