From cdf57806d6c57fe6f73e15659c3e9bf853a8cc2e Mon Sep 17 00:00:00 2001 From: paulGao Date: Thu, 11 Nov 2021 18:46:26 +0800 Subject: [PATCH] add logout --- api/login.js | 9 +++++++++ pages/mine/set/setUp.vue | 11 +++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/api/login.js b/api/login.js index 14f3ff7..294867f 100644 --- a/api/login.js +++ b/api/login.js @@ -65,3 +65,12 @@ export function refreshTokenFn(refresh_token) { method: "GET", }); } + +// 获取密码状态 +export function logout () { + return http.request({ + url: '/members/logout', + method: "POST", + needToken: true, + }) +} diff --git a/pages/mine/set/setUp.vue b/pages/mine/set/setUp.vue index f73cae9..fbef2d5 100644 --- a/pages/mine/set/setUp.vue +++ b/pages/mine/set/setUp.vue @@ -27,6 +27,7 @@