shaogen1995 %!s(int64=2) %!d(string=hai) anos
pai
achega
f2465b3c1c

BIN=BIN
web/public/program/Build/Build13.data.unityweb


BIN=BIN
web/public/program/Build/Build13.framework.js.unityweb


BIN=BIN
web/public/program/Build/Build13.wasm.unityweb


+ 1 - 2
web/src/App.vue

@@ -96,8 +96,7 @@ onMounted(async () => {
   let result = (await http.get("cms/wxUser/getUserInfo")).data;
   let info = result.data;
   userInfo = info;
-  // 把用户信息存到本地
-  localStorage.setItem("HN_GAME_USER_INFO", JSON.stringify(info));
+
   point.value = info.point;
 });
 </script>

+ 5 - 4
web/src/components/Vmenu.vue

@@ -59,10 +59,11 @@ const onClickItem = (item) => {
   } else {
     // 每次点击我的庄园 拿到自己的模型数据
     if (item.id === "Courtyard") {
-      const userInfo = JSON.parse(
-        localStorage.getItem("HN_GAME_USER_INFO") || "{}"
-      );
-      postMsg("ShowUserData", userInfo.id);
+      postMsg("OnClickEdit", "");
+      // const userInfo = JSON.parse(
+      //   localStorage.getItem("HN_GAME_USER_INFO") || "{}"
+      // );
+      // postMsg("ShowUserData", userInfo.id);
     }
 
     router.push({ name: item.id });