From ce20e86b57be436a42b65befe8e1da2283922030 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期三, 11 十二月 2024 10:17:05 +0800
Subject: [PATCH] 优化

---
 src/views/projectManage/plan/planInfo.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/views/projectManage/plan/planInfo.vue b/src/views/projectManage/plan/planInfo.vue
index 54012b5..ca24a31 100644
--- a/src/views/projectManage/plan/planInfo.vue
+++ b/src/views/projectManage/plan/planInfo.vue
@@ -101,7 +101,9 @@
       }
     }
   },
-
+  created() {
+    this.getProjectInfoData();
+  },
   methods: {
     // 椤甸潰鍔犺浇
     search() {
@@ -110,8 +112,8 @@
     // 鑾峰彇浼犻�掕繃鏉ョ殑椤圭洰璁″垝璇︽儏
     getProjectInfoData() {
       // 浠庢煡璇㈠弬鏁颁腑鑾峰彇鏁版嵁
-      this.projectInfoData = this.$route.query.projectInfoData
-      this.planInfoData = this.$route.query.data
+      this.projectInfoData = JSON.parse(this.$route.query.projectInfoData)
+      this.planInfoData = JSON.parse(this.$route.query.data)
       this.search();
     },
     // 鑾峰彇椤圭洰璁″垝椤�
@@ -179,9 +181,6 @@
         }
       })
     }
-  },
-  created() {
-    this.getProjectInfoData();
   },
 };
 </script>

--
Gitblit v1.8.0