lw-cdp-ui 1.4.67 → 1.4.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -401,7 +401,9 @@ export default {
401
401
 
402
402
  //获取token
403
403
  let token = await this.$api.auth.token(data)
404
- this.$tool.data.set('TOKEN', token)
404
+ if (this.$config.ENV) {
405
+ this.$tool.data.set('TOKEN', token)
406
+ }
405
407
 
406
408
  this.islogin = true
407
409
  // 获取所有bu
@@ -463,7 +465,6 @@ export default {
463
465
  sessionStorage.setItem('easyweb_session_passport_current_user', JSON.stringify({ v: user }))
464
466
  sessionStorage.setItem('easyweb_session_passport_bu', JSON.stringify({ v: bu[0] }))
465
467
  sessionStorage.setItem('easyweb_session_passport_bu_list', JSON.stringify({ v: bu }))
466
- document.cookie = `Authorization=Bearer ${token}`
467
468
 
468
469
  // 检验是否初始化
469
470
  if (this.isInitialized) {