|
@@ -53,11 +53,11 @@ export default {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
this.$http({
|
|
|
- url: this.$http.adornUrl('/sys/logout'),
|
|
|
+ url: this.$http.adornUrl('/user/loginout'),
|
|
|
method: 'post',
|
|
|
data: this.$http.adornData()
|
|
|
}).then(({ data }) => {
|
|
|
- if (data && data.code === 0) {
|
|
|
+ if (data.status) {
|
|
|
clearLoginInfo()
|
|
|
this.$router.push({ name: 'login' })
|
|
|
}
|