n20-common-lib 2.1.6 → 2.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  {{ '单位' | $lc }}: <span class="color-666">{{ userInfo.companyName }}</span>
37
37
  </span>
38
38
  </sapn>
39
- <span v-else-if="byLabel" class="uif-by">{{ byLabel }}</span>
39
+ <span v-else-if="byLabel && !inBack" class="header-uif-by">{{ byLabel }}</span>
40
40
  <el-button v-if="inBack" class="header-hdyy f-s-s" plain round size="mini" @click="toSystem">回到应用</el-button>
41
41
  <!-- YSCW-end -->
42
42
  <el-dropdown class="m-l-lg" @command="setLang">
@@ -296,7 +296,7 @@ export default {
296
296
  byV: false,
297
297
  byLabel: '小毅要卷到地老天荒…',
298
298
  headerUserInfoBg: realUrl('/server-assets/userInfoBg.png'),
299
- inBack: window.sessionStorage.getItem('pageInType') === 'inBack'
299
+ inBack: window.localStorage.getItem('pageInType') === 'inBack'
300
300
  }
301
301
  },
302
302
  created() {
@@ -504,7 +504,7 @@ export default {
504
504
  this.themeV = true
505
505
  },
506
506
  toBack() {
507
- window.sessionStorage.setItem('pageInType', 'toBack')
507
+ window.localStorage.setItem('pageInType', 'toBack')
508
508
 
509
509
  let { base = '/' } = this.$router.options
510
510
  if (!/\/$/.test(base)) base += '/'
@@ -512,7 +512,7 @@ export default {
512
512
  window.location.href = window.location.origin + base
513
513
  },
514
514
  toSystem() {
515
- window.sessionStorage.setItem('pageInType', 'toFront')
515
+ window.localStorage.setItem('pageInType', 'toFront')
516
516
 
517
517
  let { base = '/' } = this.$router.options
518
518
  if (!/\/$/.test(base)) base += '/'
@@ -549,3 +549,10 @@ export default {
549
549
  }
550
550
  }
551
551
  </script>
552
+ <style>
553
+ .header-uif-by {
554
+ color: #999;
555
+ font-size: 12px;
556
+ margin-right: 60px;
557
+ }
558
+ </style>
@@ -217,14 +217,14 @@ export default {
217
217
  this.tabList = tabList
218
218
  },
219
219
  setTabList() {
220
- let pageInType = sessionStorage.getItem('pageInType')
220
+ let pageInType = localStorage.getItem('pageInType')
221
221
 
222
222
  if (pageInType === 'toFront') {
223
223
  window.sessionStorage.removeItem('tab-list')
224
- window.sessionStorage.setItem('pageInType', 'inFront')
224
+ window.localStorage.setItem('pageInType', 'inFront')
225
225
  } else if (pageInType === 'toBack') {
226
226
  window.sessionStorage.removeItem('tab-list')
227
- window.sessionStorage.setItem('pageInType', 'inBack')
227
+ window.localStorage.setItem('pageInType', 'inBack')
228
228
  } else {
229
229
  window.sessionStorage.setItem('tab-list', JSON.stringify(this.tabList))
230
230
  }