Explorar el Código

单元测修改缓存

wangxy hace 2 meses
padre
commit
2c0229d410
Se han modificado 1 ficheros con 3 adiciones y 7 borrados
  1. 3 7
      pages/unitTest/index.vue

+ 3 - 7
pages/unitTest/index.vue

@@ -128,13 +128,9 @@
 	}
 	// 继续学习
 	async function goStudyContinue() {
-		const list = cacheManager.get('zhangInfo').zhangList;
-		// 设置 从单元测试 到 岛 的路由参数
-		activeZhang.value.nextZhang ? activeZhang.value.nextZhang.zhangId : null;
-		cacheManager.updateObject('auth', {
-			currentZhang: list.findIndex(item => item.zhangId == activeZhang.value.nextZhang.zhangId),
-			zhangId: activeZhang.value.nextZhang.zhangId
-		})
+    cacheManager.updateObject('zhangInfo', {
+      curZhangId: activeZhang.value.nextZhang.zhangId
+    })
 		uni.redirectTo({
 			url: `/pages/study/index`
 		})