优化页面
This commit is contained in:
20
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
20
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
@@ -21,6 +21,23 @@ const _sfc_main = {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/Setting/Setting"
|
||||
});
|
||||
},
|
||||
logout() {
|
||||
common_vendor.index.removeStorage({
|
||||
key: "chatInfo"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "userinfo"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "userSig"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "lastPage"
|
||||
});
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -40,7 +57,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: $data.userinfo.headerIcon,
|
||||
b: common_vendor.t($data.userinfo.nickName),
|
||||
c: common_assets._imports_0$2,
|
||||
d: common_vendor.o$1((...args) => $options.goSetting && $options.goSetting(...args))
|
||||
d: common_vendor.o$1((...args) => $options.goSetting && $options.goSetting(...args)),
|
||||
e: common_vendor.o$1((...args) => $options.logout && $options.logout(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-402ad917"]]);
|
||||
|
||||
Reference in New Issue
Block a user