n20-common-lib 2.4.34 → 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
|
@@ -426,14 +426,19 @@ export default {
|
|
|
426
426
|
})
|
|
427
427
|
},
|
|
428
428
|
logoutA() {
|
|
429
|
-
axios
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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() {
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
</div>
|
|
189
189
|
<el-dropdown-menu slot="dropdown">
|
|
190
190
|
<el-dropdown-item v-for="item in systemList" :key="item.id" @click.native="clickSystem(item)">
|
|
191
|
-
<span>{{ item.systemName
|
|
191
|
+
<span>{{ item.systemName }}</span>
|
|
192
192
|
</el-dropdown-item>
|
|
193
193
|
</el-dropdown-menu>
|
|
194
194
|
</el-dropdown>
|
|
@@ -570,14 +570,19 @@ export default {
|
|
|
570
570
|
})
|
|
571
571
|
},
|
|
572
572
|
logoutA() {
|
|
573
|
-
axios
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
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() {
|