n20-common-lib 2.4.35 → 2.4.36

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.34",
3
+ "version": "2.4.36",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -426,14 +426,19 @@ export default {
426
426
  })
427
427
  },
428
428
  logoutA() {
429
- axios.delete('/bems/prod_1.0/uas/api/authorization/logout').then(() => {
430
- if (this.afterLogout) {
431
- let After = this.afterLogout()
432
- After.then && After.then(auth.removeToken())
433
- } else {
429
+ axios
430
+ .delete('/bems/prod_1.0/uas/api/authorization/logout', {}, { noMsg: true })
431
+ .then(() => {
432
+ if (this.afterLogout) {
433
+ let After = this.afterLogout()
434
+ After.then && After.then(auth.removeToken())
435
+ } else {
436
+ auth.removeToken()
437
+ }
438
+ })
439
+ .catch(() => {
434
440
  auth.removeToken()
435
- }
436
- })
441
+ })
437
442
  },
438
443
  // 检查是否代理中
439
444
  async getProxyAuthIing() {
@@ -570,14 +570,19 @@ export default {
570
570
  })
571
571
  },
572
572
  logoutA() {
573
- axios.delete('/bems/prod_1.0/uas/api/authorization/logout').then(() => {
574
- if (this.afterLogout) {
575
- let After = this.afterLogout()
576
- After.then && After.then(auth.removeToken())
577
- } else {
573
+ axios
574
+ .delete('/bems/prod_1.0/uas/api/authorization/logout', {}, { noMsg: true })
575
+ .then(() => {
576
+ if (this.afterLogout) {
577
+ let After = this.afterLogout()
578
+ After.then && After.then(auth.removeToken())
579
+ } else {
580
+ auth.removeToken()
581
+ }
582
+ })
583
+ .catch(() => {
578
584
  auth.removeToken()
579
- }
580
- })
585
+ })
581
586
  },
582
587
  // 检查是否代理中
583
588
  async getProxyAuthIing() {