Browse Source

Merge branch '2025鹅状元dev' of https://gogs.mtavip.com/wangguoyu/uniProject into 2025鹅状元dev

tanxue 2 months ago
parent
commit
08a821969a
2 changed files with 5 additions and 4 deletions
  1. 0 1
      pages/newEnglish/index.vue
  2. 5 3
      utils/cacheManager.js

+ 0 - 1
pages/newEnglish/index.vue

@@ -218,7 +218,6 @@
   // 返回岛
   if (userCode !== 'Visitor') {
     let jieInfo = cacheManager.getUnitInfo('zhangInfo', data.jieId);
-
     if (jieInfo.lastFlag == 1) {
       // 更新岛状态
       cacheManager.updateObject('zhangInfo', {

+ 5 - 3
utils/cacheManager.js

@@ -126,9 +126,11 @@ const cacheManager = (function() {
 		let obj = get(key) || {};
 		let result = {}
 		obj.zhangList.map(item => item.zList.forEach(jie => {
-			if (jie.jieId == currentJieId) {
-				result = jie;
-			}
+			jie.jieList.forEach(cItem => {
+				if (cItem.jieId == currentJieId) {
+					result = cItem;
+				}
+			})
 		}))
 		return result
 	}