Commit c8b2735f by 前端

Merge branch 'wangzh_dev_2.0' into 'v2.0.0'

fix:判断merchantModel是否为空

See merge request !7
2 parents 741dc024 d50a736b
...@@ -268,14 +268,14 @@ export default { ...@@ -268,14 +268,14 @@ 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
} }
// console.log(id,'测试测试') // console.log(id,'测试测试')
// id = 'wo_pmOEQAAr93aXGLTNtAjLGZZxpwXuQ' // id = 'wo_pmOEQAAr93aXGLTNtAjLGZZxpwXuQ'
if (id || isTrue) { if (id || isTrue) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!