wangguoyu há 4 meses atrás
pai
commit
7902ac4da0
1 ficheiros alterados com 6 adições e 4 exclusões
  1. 6 4
      pages/study/index.vue

+ 6 - 4
pages/study/index.vue

@@ -295,10 +295,12 @@
 		catalogueRef.value.showPopup();
 	}
 
-	function clickGradeTerm() {
-		cacheManager.updateObject('auth', {
-			currentZhang: 0
-		})
+	function clickGradeTerm() {
+		if(cacheManager.get('auth')){
+			cacheManager.updateObject('auth', {
+				currentZhang: 0
+			})
+		}
 		uni.navigateTo({
 			url: `/pages/selectGradesTerms/index`,
 		})