Explorar o código

zid数据修改

tanxue hai 2 meses
pai
achega
c0e23106cd
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      pages/wordList/wordList.vue

+ 8 - 1
pages/wordList/wordList.vue

@@ -98,14 +98,21 @@ function goBack(){
 	}
 	
 }
+// 修改缓存zid  用于定位岛
+function updataCache(data){
+	cacheManager.updateObject('zhangInfo', {
+		curZid: data
+	})
+}
 
 function handleTitleClick(item){
-	
 	if (!cacheManager.get('auth')) {
 		youkeDialogRef.value.handleShow();
 	}else {
 		// 非游客
 		wordJieId = item.jieId;
+		// 修改缓存zid  用于定位岛
+		updataCache(item.zhangZid)
 		getWordListData();
 	}
 }