退出登录接口参数
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-09-11 17:54:29 +08:00
parent 48f3ac70e5
commit de04236455
2 changed files with 4 additions and 3 deletions

View File

@ -131,10 +131,11 @@ export function setAutoCutNextTask(params) {
})
}
export function loginOut() {
export function loginOut(params) {
return request({
url: `/User/loginOut`,
method: 'get'
method: 'get',
params
})
}

View File

@ -279,7 +279,7 @@ export default {
this.$store.dispatch('app/toggleSideBar')
},
async logout() {
await loginOut()
// await loginOut()
await this.$store.dispatch('user/logout')
this.$router.push(`/login`)
this.$i18n.locale = 'zh'