wangguoyu 2 settimane fa
parent
commit
b0f8ecb7bb
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. 12 0
      pages/study/index.vue

+ 12 - 0
pages/study/index.vue

@@ -290,6 +290,12 @@
 				recordZhangJie()
 			})
 
+		}).catch((err) => {
+			toast('数据异常,请重新登录!')
+			cacheManager.clearAll();
+			uni.reLaunch({
+				url: '/pages/login/index'
+			});
 		})
 	}
 
@@ -303,6 +309,12 @@
 			youkeImage.value = res.data.icon
 			zhangList.value = res.data.zhangList
 			current.value = 0
+		}).catch((err) => {
+			toast('数据异常,请重新登录!')
+			cacheManager.clearAll();
+			uni.reLaunch({
+				url: '/pages/login/index'
+			});
 		})
 	}