MrShi
9 天以前 4fabfe4dbd2eb28d07a4350597d314958cc1c281
bicycle/utils/http.interceptor.js
@@ -13,13 +13,18 @@
   
   // 响应拦截器
   uni.$u.http.interceptors.response.use((response) => {
      if (response.data.code === 5113) {
         uni.navigateTo({
            url: '/pages/index/index'
         });
         return
      }
      if (response.data.code !== 200) {
         uni.showToast({
            title: response.data.message,
            icon: "none",
            duration: 2000
         });
         return response.data
      }
      return response.data
   }, (response) => {