n20-common-lib 2.5.5-beta.4 → 2.5.5-beta.6

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.5.5-beta.4",
3
+ "version": "2.5.5-beta.6",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -116,4 +116,4 @@
116
116
  "last 2 versions",
117
117
  "not dead"
118
118
  ]
119
- }
119
+ }
@@ -93,7 +93,7 @@ export default {
93
93
  data() {
94
94
  let headerH = 48
95
95
  let tabsH = 28
96
- let clientM = 4
96
+ let clientM = 8
97
97
 
98
98
  return {
99
99
  dnsKey: this.isTest || (process.env.NODE_ENV === 'production' && process.env.VUE_APP_KEEP_ALIVE === 'true'),
@@ -117,7 +117,7 @@
117
117
  :login-then="loginThenT"
118
118
  :async-rela-nos="asyncRelaNos"
119
119
  :extra-form="extraForm"
120
- :show-image-code="showImageCode"
120
+ :show-image-code="imgCode"
121
121
  :show-forget-btn="showForgetBtn"
122
122
  @changType="getChangetype"
123
123
  >
@@ -224,7 +224,7 @@ export default {
224
224
  },
225
225
  showImageCode: {
226
226
  type: Boolean,
227
- default: true
227
+ default: undefined
228
228
  },
229
229
  showForgetBtn: {
230
230
  type: Boolean,
@@ -321,7 +321,8 @@ export default {
321
321
  },
322
322
  sltSys: {},
323
323
  loginBg: 'none',
324
- inspectionV: false
324
+ inspectionV: false,
325
+ isImageCode: false
325
326
  }
326
327
  },
327
328
  computed: {
@@ -380,6 +381,9 @@ export default {
380
381
  }
381
382
 
382
383
  return form
384
+ },
385
+ imgCode() {
386
+ return this.showImageCode ?? this.isImageCode
383
387
  }
384
388
  },
385
389
  watch: {
@@ -402,6 +406,7 @@ export default {
402
406
  // window.addEventListener('resize', this.setWrapSty)
403
407
 
404
408
  this.init()
409
+ this.getIsImgCode()
405
410
  localStorage.removeItem('pageInType')
406
411
  localStorage.setItem('pageInSystemNo', this.form.SYSTEM_LIST[0].NO)
407
412
  },
@@ -409,6 +414,11 @@ export default {
409
414
  // window.removeEventListener('resize', this.setWrapSty)
410
415
  },
411
416
  methods: {
417
+ getIsImgCode() {
418
+ axios.get(`/bems/prod_1.0/uas/api/authorization/isimgcode`).then(({ data }) => {
419
+ this.isImageCode = data
420
+ })
421
+ },
412
422
  async loginThenT() {
413
423
  if (this.sltSys?.NO) {
414
424
  localStorage.setItem('pageInSystemNo', this.sltSys.NO)