Procházet zdrojové kódy

更新当前岛状态

wangxy před 2 měsíci
rodič
revize
7f41e16e25
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      pages/unitTest/useUnit.js

+ 3 - 1
pages/unitTest/useUnit.js

@@ -188,7 +188,9 @@ export function useExam() {
 			return;
 		}
 		
-		const cacheCurrentZhangIndex = cacheManager.get('auth').currentZhang;
+		const curZhangId = cacheManager.get('zhangInfo').curZhangId;
+		const resZhangList = cacheManager.get('zhangInfo').zhangList;
+		const cacheCurrentZhangIndex = resZhangList.findIndex(item => item.zhangId == curZhangId)
 		cacheManager.updateJieStatus('zhangInfo', cacheCurrentZhangIndex, data.jieId);
 		
 		dom.showPopup({