From 98e1663951fb287cadb92c469d50b80a163caf43 Mon Sep 17 00:00:00 2001 From: ch Date: Mon, 16 May 2022 16:55:22 +0800 Subject: [PATCH] logout --- common/api/index.js | 7 ++++++- pages/account/setting/index.vue | 5 +++-- unpackage/dist/build/h5/index.html | 2 +- .../h5/static/js/{index.355b4e27.js => index.79fc9e34.js} | 2 +- .../h5/static/js/pages-account-setting-index.cd0fa8fd.js | 1 + .../h5/static/js/pages-account-setting-index.f0fb3ee3.js | 1 - .../dist/build/h5/static/js/pages-index-index.c0b91689.js | 1 - .../dist/build/h5/static/js/pages-index-index.c4964c63.js | 1 + unpackage/dist/build/h5/static/js/pages-login.2a23cb5c.js | 1 - unpackage/dist/build/h5/static/js/pages-login.b2874743.js | 1 + 10 files changed, 14 insertions(+), 8 deletions(-) rename unpackage/dist/build/h5/static/js/{index.355b4e27.js => index.79fc9e34.js} (99%) create mode 100644 unpackage/dist/build/h5/static/js/pages-account-setting-index.cd0fa8fd.js delete mode 100644 unpackage/dist/build/h5/static/js/pages-account-setting-index.f0fb3ee3.js delete mode 100644 unpackage/dist/build/h5/static/js/pages-index-index.c0b91689.js create mode 100644 unpackage/dist/build/h5/static/js/pages-index-index.c4964c63.js delete mode 100644 unpackage/dist/build/h5/static/js/pages-login.2a23cb5c.js create mode 100644 unpackage/dist/build/h5/static/js/pages-login.b2874743.js 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 -->