Commit d50a736b by 王志慧

fix:判断merchantModel是否为空

1 parent 085d1d49
......@@ -268,14 +268,14 @@ export default {
})
},
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.showLoading()
let { id, customerId, isTrue } = this.getQuery()
if(JSON.parse(window.localStorage.getItem('dj_id'))){
id = JSON.parse(window.localStorage.getItem('dj_id')).id
if (JSON.parse(window.localStorage.getItem('dj_id'))) {
id = JSON.parse(window.localStorage.getItem('dj_id')).id
}
// console.log(id,'测试测试')
// id = 'wo_pmOEQAAr93aXGLTNtAjLGZZxpwXuQ'
if (id || isTrue) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!