提交 d512d605 authored 作者: CRS's avatar CRS

new

上级 17333c10
......@@ -27,12 +27,12 @@ axios.interceptors.request.use(function (config) {
// 添加响应拦截器
axios.interceptors.response.use(function (response) {
if (response.data.code === 403) {
if (response.data.code === 403 || response.status === 403 ) {
v.$message.error(response.data.msg);
setTimeout(function () {
router.push({name: 'login'})
}, 500)
} else if (response.data.code === 400) {
} else if (response.data.code === 400 || response.status === 400 ) {
v.$message.error(response.data.msg);
setTimeout(function () {
router.push({name: 'login'})
......
......@@ -10,8 +10,8 @@ import axios from '@/services/axios';
* dataType
*/
import qs from 'qs';
// const assessma = 'http://120.55.57.35:8078'
const assessma = 'http://192.168.1.85:8078'
const assessma = 'http://120.55.57.35:8078'
// const assessma = 'http://192.168.1.85:8078'
const server = {
getloginOut(id) { // 用户退出
return axios('/user/loginOut/' + id, {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论