Commit a8d6d059 by 陈羽

update: 企业数据商户切换刷新

parent f02c156b
......@@ -168,6 +168,7 @@ export default {
that.brandListData.forEach(ele => {
if (ele.enterpriseId == val) {
that.activeBrand = ele.enterpriseId;
sessionStorage.setItem('activeBrand', val);
}
});
that.getLoginData();
......@@ -185,7 +186,7 @@ export default {
if (resData.errorCode == 1) {
if (!!resData.result && !!resData.result.length) {
that.brandListData = resData.result;
that.activeBrand = !!that.$route.query.brandId ? that.$route.query.brandId : that.brandListData[0].enterpriseId;
that.activeBrand = sessionStorage.getItem('activeBrand') ? sessionStorage.getItem('activeBrand') : !!that.$route.query.brandId ? that.$route.query.brandId : that.brandListData[0].enterpriseId;
that.getLoginData();
that.getTendData();
that.getAreaLoginData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment