|
@@ -67,6 +67,20 @@ qmInstance.interceptors.response.use(
|
|
let status = error.response.status;
|
|
let status = error.response.status;
|
|
|
|
|
|
if (status != 200) {
|
|
if (status != 200) {
|
|
|
|
+ if (![401, 403].includes(status) && wk_token) {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ qmInstance.post(
|
|
|
|
+ "/api/ecs_core/log/studentClient/" + "debug/S-009001",
|
|
|
|
+ error.config.url + " 请求失败",
|
|
|
|
+ {
|
|
|
|
+ headers: {
|
|
|
|
+ "Content-Type": "text/plain"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ }, 3 * 1000);
|
|
|
|
+ }
|
|
|
|
+
|
|
const data = error.response.data;
|
|
const data = error.response.data;
|
|
if (data && data.desc) {
|
|
if (data && data.desc) {
|
|
Message.error({
|
|
Message.error({
|