From 51b1dc160098b5a93a90ba4d1bd83dd96359e2be Mon Sep 17 00:00:00 2001 From: zzl <961867786@qq.com> Date: Sat, 26 Apr 2025 11:17:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=EF=BC=9A=E5=85=AC?= =?UTF-8?q?=E5=BC=80=E7=99=BB=E5=BD=95bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sunVillage_info/index.vue | 4 ++-- src/views/sunVillage_info/login_code.vue | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/sunVillage_info/index.vue b/src/views/sunVillage_info/index.vue index dc805fd4..173510da 100644 --- a/src/views/sunVillage_info/index.vue +++ b/src/views/sunVillage_info/index.vue @@ -112,7 +112,7 @@ }; }, created() { - getConfigKey("system.app.yinnongExclusive").then(response => { + /*getConfigKey("system.app.yinnongExclusive").then(response => { if(response.msg == "Y"){ this.actions=[ { text: '个人信息', icon: 'manager-o' , index: 0 }, @@ -121,7 +121,7 @@ { text: '退出登录', icon: 'revoke' , index: 8 }, ]; } - }); + });*/ getInfo().then(response => { this.bookName = response.user.bookName this.deptName = response.user.deptName diff --git a/src/views/sunVillage_info/login_code.vue b/src/views/sunVillage_info/login_code.vue index 43180c9a..70ae0cb0 100644 --- a/src/views/sunVillage_info/login_code.vue +++ b/src/views/sunVillage_info/login_code.vue @@ -99,7 +99,7 @@ created() { this.height = document.body.clientHeight this.getCookie(); - this.formData.deptId = Cookies.get('deptId'); + //this.formData.deptId = Cookies.get('deptId'); // 要关掉这个 this.allowIdentityVerified(); }, methods: { @@ -147,6 +147,11 @@ const farmerCode = res.rows[0].farmerCode; Cookies.set("farmerCode",farmerCode, { expires: 30 }); Cookies.set("user", response.data, { expires: expires }); + + // 可能不是从无权限公开页面跳入本页面的,可能直接封装的本页面作为入口,故重置以下 + Cookies.set("bookId", res.rows[0].bookId, {expires: 30,}); + Cookies.set("deptId", res.rows[0].deptId, {expires: 30,}); + if (this.formData.identityCheck){ this.$router.push({ path: '/sunVillage_info/identity_check',