Vue reference and instantiate
Import View from 'view' ; const v = new View ();
Quote
// token failed login expiration, forced to jump to the login page
axios.interceptors.response.use (the Response => { // token failed login expiration, forced to jump to the login page IF (response.data.code === -3 ) {
// do things start v. $ notify ({ the Message: 'Log prescription has expired, about to jump to enforce logon' , of the type: 'warning' }) store.commit ( "LOGOUT" ); router.push ( "/ the Login" ); return response.data; } })