|
@@ -1,7 +1,7 @@ |
|
|
/* |
|
|
/* |
|
|
* @Date: 2021-12-08 15:59:46 |
|
|
* @Date: 2021-12-08 15:59:46 |
|
|
* @LastEditors: JinxuChen |
|
|
* @LastEditors: JinxuChen |
|
|
* @LastEditTime: 2022-01-07 14:58:45 |
|
|
|
|
|
|
|
|
* @LastEditTime: 2022-01-07 15:15:13 |
|
|
* @FilePath: \GpsCardAdmin\src\utils\request.js |
|
|
* @FilePath: \GpsCardAdmin\src\utils\request.js |
|
|
* @description: |
|
|
* @description: |
|
|
*/ |
|
|
*/ |
|
@@ -82,8 +82,9 @@ service.interceptors.response.use( |
|
|
location.reload() |
|
|
location.reload() |
|
|
}) |
|
|
}) |
|
|
}, 1500) |
|
|
}, 1500) |
|
|
|
|
|
return Promise.reject(new Error('token过期,请重新登录')) |
|
|
} |
|
|
} |
|
|
return Promise.reject(new Error('token过期,请重新登录')) |
|
|
|
|
|
|
|
|
return Promise.reject(new Error(res.message)) |
|
|
} else { |
|
|
} else { |
|
|
return res |
|
|
return res |
|
|
} |
|
|
} |
|
|