修复:省公司和超市登录时 页面标题显示错误,登录后未成功记录登录状态并且使用;导致每次需要重新登录
This commit is contained in:
parent
a4e794a4c5
commit
aac6de1849
|
|
@ -96,6 +96,8 @@ export default {
|
|||
this.pageTitle = '商家';
|
||||
if(this.is_sys == 2) this.pageTitle = '酒道馆';
|
||||
else if(this.is_sys == 3) this.pageTitle = '烟酒店';
|
||||
else if(this.is_sys == 4) this.pageTitle = '超市';
|
||||
else if(this.is_sys == 5) this.pageTitle = '省公司门店';
|
||||
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.pageTitle + '登录'
|
||||
|
|
@ -126,6 +128,8 @@ export default {
|
|||
let merchantType = '0';
|
||||
if(this.is_sys == 2) merchantType = '1';
|
||||
else if(this.is_sys == 3) merchantType = '3';
|
||||
else if(this.is_sys == 4) merchantType = '4';
|
||||
else if(this.is_sys == 5) merchantType = '5';
|
||||
|
||||
let loginHistory = this.$Cache.get('MER_LOGIN_HISTORY_' + merchantType) || {};
|
||||
if(typeof loginHistory === 'string') loginHistory = JSON.parse(loginHistory) || {};
|
||||
|
|
|
|||
Loading…
Reference in New Issue