Commit d50a736b by 王志慧

fix:判断merchantModel是否为空

1 parent 085d1d49
...@@ -268,11 +268,11 @@ export default { ...@@ -268,11 +268,11 @@ export default {
}) })
}, },
mounted() { mounted() {
this.merchantModel = this.getLocalStorage('dj_scrm_userInfo').merchantModel this.merchantModel = this.getLocalStorage('dj_scrm_userInfo').merchantModel ? this.getLocalStorage('dj_scrm_userInfo').merchantModel : ''
this.userAgent = this.isMobile() this.userAgent = this.isMobile()
this.showLoading() this.showLoading()
let { id, customerId, isTrue } = this.getQuery() let { id, customerId, isTrue } = this.getQuery()
if(JSON.parse(window.localStorage.getItem('dj_id'))){ if (JSON.parse(window.localStorage.getItem('dj_id'))) {
id = JSON.parse(window.localStorage.getItem('dj_id')).id id = JSON.parse(window.localStorage.getItem('dj_id')).id
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!