n20-common-lib 2.4.6 → 2.4.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.4.6",
3
+ "version": "2.4.7",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -418,7 +418,7 @@ export default {
418
418
  },
419
419
  async clickSystem(item) {
420
420
  await this.getTreeList(item)
421
- localStorage.setItem('pageInType', 'inFront')
421
+ localStorage.setItem('pageInType', 'toFront')
422
422
  window.localStorage.setItem('pageInSystemNo', item.systemCode)
423
423
  let { base = '/' } = this.$router.options
424
424
  if (!/\/$/.test(base)) base += '/'
@@ -225,7 +225,6 @@ export default {
225
225
  },
226
226
  setTabList() {
227
227
  let pageInType = localStorage.getItem('pageInType')
228
-
229
228
  if (pageInType === 'toFront') {
230
229
  window.sessionStorage.removeItem('tab-list')
231
230
  window.localStorage.setItem('pageInType', 'inFront')
@@ -233,7 +232,7 @@ export default {
233
232
  window.sessionStorage.removeItem('tab-list')
234
233
  window.localStorage.setItem('pageInType', 'inBack')
235
234
  } else {
236
- window.sessionStorage.removeItem('tab-list')
235
+ window.sessionStorage.setItem('tab-list', JSON.stringify(this.tabList))
237
236
  }
238
237
  },
239
238
  getActiveNav() {
@@ -310,10 +310,10 @@ export default {
310
310
  return this.jsonData.loginCopyright || ''
311
311
  },
312
312
  inspectionCenter() {
313
- return this.jsonData.inspectionCenter || true
313
+ return this.jsonData.inspectionCenter
314
314
  },
315
315
  pluginPlatform() {
316
- return this.jsonData.pluginPlatform || true
316
+ return this.jsonData.pluginPlatform
317
317
  },
318
318
  loginSloganHtml() {
319
319
  return this.form.LOGIN_SLOGAN || this.jsonData.loginSloganHtml || ''