Vue中使用axios攔截器攔截帳號退出

使用過程當中,當登陸帳號異常退出的時候,頁面請求接口數據會報401,這時候頁面須要退出從新登陸,個人實現方式是:vue import axios from 'axios' import { MessageBox } from 'element-ui' import { getToken } from '@/utils/auth' // create an axios instance const
相關文章
相關標籤/搜索