lxf před 2 dny
rodič
revize
727de639bd
1 změnil soubory, kde provedl 0 přidání a 12 odebrání
  1. 0 12
      src/views/old_mini/monitor/index.vue

+ 0 - 12
src/views/old_mini/monitor/index.vue

@@ -55,17 +55,6 @@ const isDefaultFarm = ref(false);
 const weatherInfoRef = ref(null);
 
 onActivated(() => {
-    // 用来接收小程序页面跳转的内容和逻辑
-    if (route.query.miniJson) {
-        const json = JSON.parse(route.query.miniJson);
-        if (json.showSuccess) {
-            receiveFarm(json);
-        }
-    }
-    if (localStorage.getItem("isGarden") != "true") {
-        showFarmPopup.value = true;
-    }
-
     // 用来接收我的农场跳转过来的农场详情逻辑
     if (route.query.isHeaderShow) {
         isHeaderShow.value = true;
@@ -304,7 +293,6 @@ onMounted(() => {
 });
 
 const changeGarden = ({ id }) => {
-    localStorage.setItem("isGarden", true);
     gardenId.value = id;
     // 更新 store 中的状态
     store.commit("home/SET_GARDEN_ID", id);