index.js 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. const _sfc_main = {
  5. methods: {
  6. navigateTo(url) {
  7. common_vendor.index.navigateTo({ url });
  8. },
  9. logout() {
  10. common_vendor.index.showModal({
  11. title: "提示",
  12. content: "确定要退出登录吗?",
  13. success: (res) => {
  14. if (res.confirm) {
  15. common_vendor.index.removeStorageSync("token");
  16. common_vendor.index.reLaunch({ url: "/pages/auth/login" });
  17. }
  18. }
  19. });
  20. }
  21. }
  22. };
  23. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  24. return {
  25. a: common_assets._imports_0,
  26. b: common_vendor.o((...args) => $options.logout && $options.logout(...args))
  27. };
  28. }
  29. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ebf6908a"]]);
  30. wx.createPage(MiniProgramPage);
  31. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/personalInfo/index.js.map