App-Android(使用App+htnl5框架,解决消息推送兼容SignalR问题)
loulijun2021
2022-09-19 a263dd50386b73f9992919a932f98b4bd5585052
unpackage/cache/wgt/H5EDA0853/js/http.js
@@ -4,10 +4,10 @@
 */
const httprequest = axios.create({
  baseURL: "http://121.196.36.24:8001/api/",
  //timeout: 1000,
  headers: {
    token: "",
  },
  timeout: 1000*10,
  // headers: {
  //   token: "",
  // },
});
 
// 请求拦截器
@@ -29,9 +29,10 @@
    if (res.code === 401) {
      window.location = `${window.logoutUrl}?url=${window.location.origin}`;
    }
   if (res.code === '302') {
      // console.log('123')
   // 当code为300时进行一个提示
   if (res.code === '300') {
      vant.Notify({ type: 'danger', message: res.Message });
      // vant.Toast({ type: 'danger', message: res.Message , position: 'top',});
   }
   
    return response;