diff --git a/common/api/index.js b/common/api/index.js index 6bf12b0..6ec6581 100644 --- a/common/api/index.js +++ b/common/api/index.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-17 16:37:45 * @LastEditors: ch - * @LastEditTime: 2022-04-06 10:02:29 + * @LastEditTime: 2022-05-16 15:52:57 * @Description: file content */ @@ -14,6 +14,11 @@ const BASE_URL = '/uc'; * @param {*} data */ export const ApiPostLogin = (data) => ToAsyncAwait(MsbRequest.post(`${BASE_URL}/user/login`, data)); +/** + * 退出登录 + * @param {*} data + */ +export const ApiGetLogout= () => ToAsyncAwait(MsbRequest.post(`${BASE_URL}/user/logout`)); /** * 获取手机验证码 * @param {*} params diff --git a/pages/account/setting/index.vue b/pages/account/setting/index.vue index 1dd1c7a..91b09a9 100644 --- a/pages/account/setting/index.vue +++ b/pages/account/setting/index.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-22 15:09:06 * @LastEditors: ch - * @LastEditTime: 2022-05-07 19:21:28 + * @LastEditTime: 2022-05-16 15:53:05 * @Description: file content -->