Просмотр исходного кода

移动端:公开登录bug修复

rongxin_dev
张泽亮 1 месяц назад
Родитель
Сommit
51b1dc1600
2 измененных файлов: 8 добавлений и 3 удалений
  1. +2
    -2
      src/views/sunVillage_info/index.vue
  2. +6
    -1
      src/views/sunVillage_info/login_code.vue

+ 2
- 2
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


+ 6
- 1
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',


Загрузка…
Отмена
Сохранить