src/views/projectEngineering/projectLibrary/component/legalPerson.vue
@@ -177,6 +177,7 @@ }, data() { return { projectForm: {}, legalPersonForm: { // id: '', // totalInvestment: '', @@ -219,6 +220,7 @@ this.getProjectUnitRegistrationInfo(); } this.legalPersonForm.projectId = this.projectForm.id; }, beforeDestroy() { if(Object.keys(this.legalPersonForm).length !==0) localStorage.setItem("legalPersonForm", JSON.stringify(this.legalPersonForm)); @@ -250,6 +252,14 @@ } } }, }, watch: { legalPersonForm: { deep: true, handler(newVal) { this.$emit('legalPersonForm', newVal) } } } } </script>