Browse Source

新增限流提示

zyh
LIONCITYS\lioncity 4 years ago
parent
commit
03146c01d4
  1. 7
      utils/request.js

7
utils/request.js

@ -41,6 +41,13 @@ fly.interceptors.response.use(
console.log('————————')
handleLoginFailure();
return Promise.reject({ msg: "未登录", toLogin: true });
}
if (error.response.data.status == 5109) {
uni.showToast({
title: error.response.data.msg,
icon: "none",
duration: 2000
});
}
return Promise.reject(error);
}

Loading…
Cancel
Save