wangguoyu 5 months ago
parent
commit
bde7feb5cd
2 changed files with 7 additions and 6 deletions
  1. 2 1
      pages/selectGradesTerms/index.vue
  2. 5 5
      pages/study/index.vue

+ 2 - 1
pages/selectGradesTerms/index.vue

@@ -91,7 +91,8 @@
 				cacheManager.updateObject('auth', {
 					nianji: data.activeNianji,
 					zhangId: data.activeNianji == auth.nianji && data.activeXueke == auth.cardId ? auth.zhangId: 0,
-					cardId: data.activeXueke,
+					cardId: data.activeXueke,
+					currentZhang: 0
 				})
 				cacheManager.remove('daoPageCache')
 				// 数序

+ 5 - 5
pages/study/index.vue

@@ -342,11 +342,11 @@
 	}
 
 	function clickGradeTerm() {
-		if(cacheManager.get('auth')){
-			cacheManager.updateObject('auth', {
-				currentZhang: 0
-			})
-		}
+		// if(cacheManager.get('auth')){
+		// 	cacheManager.updateObject('auth', {
+		// 		currentZhang: 0
+		// 	})
+		// }
 		uni.navigateTo({
 			url: `/pages/selectGradesTerms/index?tipFlag=${tipFlag.value}`,
 		})