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.
- package/dist/components/lwLogin/index.vue +3 -2
- package/dist/lw-cdp-ui.esm.js +4581 -4581
- package/dist/lw-cdp-ui.umd.js +16 -16
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -401,7 +401,9 @@ export default {
|
|
|
401
401
|
|
|
402
402
|
//获取token
|
|
403
403
|
let token = await this.$api.auth.token(data)
|
|
404
|
-
this.$
|
|
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) {
|