lw-cdp-ui 1.4.66 → 1.4.68

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.
@@ -352,9 +352,13 @@ export default {
352
352
  },
353
353
  // 关闭当前标签 并跳转
354
354
  closeTagAndJump(path, keep) {
355
- this.$store.commit('removeKeepLive', keep)
356
- this.closeSelectedTag(this.$route, false)
355
+ if (keep) {
356
+ this.$store.commit('removeKeepLive', keep)
357
+ }
357
358
  this.$router.push(path)
359
+ if (this.$store.state.global.layoutTags) {
360
+ this.closeSelectedTag(this.$route, false)
361
+ }
358
362
  },
359
363
  // 显示ID
360
364
  getIdName(tag) {
@@ -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 (import.meta.env.DEV) {
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) {