Browse Source

1 去除daoPageCache

wangguoyu 2 months ago
parent
commit
8f0c305ee3
4 changed files with 5 additions and 7 deletions
  1. 1 1
      pages/pay/order.vue
  2. 1 1
      pages/pay/productDialog.vue
  3. 1 1
      pages/selectGradesTerms/index.vue
  4. 2 4
      pages/study/index.vue

+ 1 - 1
pages/pay/order.vue

@@ -313,7 +313,7 @@
 				subjectId: data.levelList[0].subjectId,
 				currentZhang: 0
 			})
-			cacheManager.remove('daoPageCache')
+			cacheManager.remove('zhangInfo')
 			uni.redirectTo({
 				url: `/pages/study/index`
 			})

+ 1 - 1
pages/pay/productDialog.vue

@@ -52,7 +52,7 @@
 			subjectId: data.subjectId,
 			currentZhang: 0
 		})
-		cacheManager.remove('daoPageCache')
+		cacheManager.remove('zhangInfo')
 		uni.redirectTo({
 			url: `/pages/study/index`
 		})

+ 1 - 1
pages/selectGradesTerms/index.vue

@@ -151,7 +151,7 @@
 					currentZhang: 0
 				})
 				// 通知岛重新调用接口
-				cacheManager.remove('daoPageCache')
+				cacheManager.remove('zhangInfo')
 				uni.redirectTo({
 					url: `/pages/study/index`
 				})

+ 2 - 4
pages/study/index.vue

@@ -227,7 +227,7 @@
 					eggDialogRef.value.eggShow();
 				})
 			}
-			if (!cacheManager.get('daoPageCache').isCache) {
+			if (!cacheManager.get('zhangInfo')) {
 				console.log('不实用换葱');
 				getZhangInfo()
 			} else {
@@ -278,9 +278,7 @@
 					currentZhang: 0
 				})
 			}
-			cacheManager.set('daoPageCache', {
-				isCache: true
-			})
+		
 
 			nextTick(() => {
 				translateData(res.data)