Procházet zdrojové kódy

参数生命周期

gangyj před 2 roky
rodič
revize
48b53f8ac1

+ 3 - 2
src/views/manager/projectinfo/archivetreeRule.vue

@@ -1507,6 +1507,9 @@ export default {
   },
   created () {
     this.token = 'bearer ' + getToken()
+    
+    this.projectId = this.$route.query.projectId;
+
     this.archiveTreetree({
       token: this.token,
       disPlayTree: 1,
@@ -1516,8 +1519,6 @@ export default {
   },
   mounted () {
     this.heights = this.$refs.container.$el.offsetHeight;
-
-    this.projectId = this.$route.query.projectId;
   }
 }
 </script>