提交 6bc8db2e authored 作者: 王鹏飞's avatar 王鹏飞

修复登出失败的问题

上级 cb749c53
...@@ -34,7 +34,7 @@ export function sendResetPasswordCode(data) { ...@@ -34,7 +34,7 @@ export function sendResetPasswordCode(data) {
} }
// 登出 // 登出
export function logout() { export function logout() {
return httpRequest.post('https://learn-pbcsf.ezijing.com/api/clear/cookie') return httpRequest.get('/api/passport/rest/logout')
} }
// 获取用户信息 // 获取用户信息
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
type="button" type="button"
class="submit-button" class="submit-button"
value="退出登录" value="退出登录"
style="margin-top:calc(100vh - 120px);" style="margin-top: calc(100vh - 120px)"
@click="logout" @click="logout"
/> />
</card> </card>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论