退出登录接口参数
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
48f3ac70e5
commit
de04236455
|
@ -131,10 +131,11 @@ export function setAutoCutNextTask(params) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loginOut() {
|
export function loginOut(params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/User/loginOut`,
|
url: `/User/loginOut`,
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -279,7 +279,7 @@ export default {
|
||||||
this.$store.dispatch('app/toggleSideBar')
|
this.$store.dispatch('app/toggleSideBar')
|
||||||
},
|
},
|
||||||
async logout() {
|
async logout() {
|
||||||
await loginOut()
|
// await loginOut()
|
||||||
await this.$store.dispatch('user/logout')
|
await this.$store.dispatch('user/logout')
|
||||||
this.$router.push(`/login`)
|
this.$router.push(`/login`)
|
||||||
this.$i18n.locale = 'zh'
|
this.$i18n.locale = 'zh'
|
||||||
|
|
Loading…
Reference in New Issue