瀏覽代碼

zid数据修改

tanxue 2 月之前
父節點
當前提交
c0e23106cd
共有 1 個文件被更改,包括 8 次插入1 次删除
  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();
 	}
 }