You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

3 weeks ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. __name: "userInfo",
  5. setup(__props) {
  6. const handleLogout = () => {
  7. common_vendor.index.showModal({
  8. title: "提示",
  9. content: "确定要退出登录吗?",
  10. success: (res) => {
  11. if (res.confirm) {
  12. common_vendor.index.removeStorageSync("isLogin");
  13. common_vendor.index.redirectTo({
  14. url: "/pages/login/login"
  15. });
  16. }
  17. }
  18. });
  19. };
  20. common_vendor.onShow(() => {
  21. const isLogin = common_vendor.index.getStorageSync("isLogin");
  22. common_vendor.index.__f__("log", "at pages/userInfo/userInfo.vue:78", isLogin);
  23. if (!isLogin) {
  24. common_vendor.index.redirectTo({
  25. url: "/pages/login/login"
  26. });
  27. }
  28. });
  29. return (_ctx, _cache) => {
  30. return {
  31. a: common_vendor.o(handleLogout)
  32. };
  33. };
  34. }
  35. };
  36. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-875c692e"]]);
  37. wx.createPage(MiniProgramPage);
  38. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/userInfo/userInfo.js.map