摘要:
登录获取后端token后,添加到所有请求的请求头中 import router from '@/router'; import axios from 'axios'; //新建个axios对象 const httpClient = axios.create({ validateStatus(stat 阅读全文
摘要:
当token过期后,自动跳转到login页 import router from '@/router'; import axios from 'axios'; //新建个axios对象 const httpClient = axios.create({ validateStatus(status) 阅读全文