lw-cdp-ui 1.4.68 → 1.4.70

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.
@@ -368,11 +368,16 @@ export default {
368
368
  }
369
369
  },
370
370
 
371
- created: function () {
371
+ created() {
372
372
  this.$store.commit('clearViewTags')
373
373
  this.$store.commit('clearKeepLive')
374
374
  this.$store.commit('clearIframeList')
375
375
  this.$tool.data.remove('MENU_LIST')
376
+ this.$tool.data.remove('TOKEN')
377
+ document.cookie.split(';').forEach((cookie) => {
378
+ const [name] = cookie.split('=').map((c) => c.trim())
379
+ document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`
380
+ })
376
381
  },
377
382
  methods: {
378
383
  // 加密
@@ -401,7 +406,7 @@ export default {
401
406
 
402
407
  //获取token
403
408
  let token = await this.$api.auth.token(data)
404
- if (import.meta.env.DEV) {
409
+ if (this.$config.ENV) {
405
410
  this.$tool.data.set('TOKEN', token)
406
411
  }
407
412