wangguoyu 4 月之前
父節點
當前提交
7902ac4da0
共有 1 個文件被更改,包括 6 次插入4 次删除
  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`,
 		})