diff --git a/yifengdian-company-report/src/views/login.vue b/yifengdian-company-report/src/views/login.vue index 2917acc..cc68b77 100644 --- a/yifengdian-company-report/src/views/login.vue +++ b/yifengdian-company-report/src/views/login.vue @@ -81,6 +81,9 @@ export default { .then((response) => { // 处理登录成功逻辑 if (response.data.code == 0) { + if(!localStorage.getItem('placeOrgName')|| this.placeOrgName != localStorage.getItem('placeOrgName')){ + localStorage.setItem('placeOrgName',this.placeOrgName) + } // this.$router.push(`/list?placeOrgName=${this.placeOrgName}`); // 跳转到指定路径 this.$router.replace(`/vegetableDetails`); // 跳转到指定路径 } else { diff --git a/yifengdian-company-report/src/views/vegetableDetails.vue b/yifengdian-company-report/src/views/vegetableDetails.vue index 8efc2e5..abae86b 100644 --- a/yifengdian-company-report/src/views/vegetableDetails.vue +++ b/yifengdian-company-report/src/views/vegetableDetails.vue @@ -9,7 +9,7 @@ -->
-
青岛德龙种业有限公司
+
{{placeOrgName||''}}