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',