modal.js 951 B

123456789101112131415161718192021222324252627282930313233343536
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const modal = common_vendor.defineStore({
  4. id: "modal",
  5. state: () => ({
  6. auth: "",
  7. // 授权弹框 accountLogin|smsLogin|resetPassword|changeMobile|changePassword|changeUsername
  8. share: false,
  9. // 分享弹框
  10. menu: false,
  11. // 快捷菜单弹框
  12. advHistory: [],
  13. // 广告弹框记录
  14. lastTimer: {
  15. // 短信验证码计时器,为了防止刷新请求做了持久化
  16. smsLogin: 0,
  17. changeMobile: 0,
  18. resetPassword: 0,
  19. changePassword: 0
  20. }
  21. }),
  22. persist: {
  23. enabled: true,
  24. strategies: [
  25. {
  26. key: "modal-store",
  27. paths: ["lastTimer", "advHistory"]
  28. }
  29. ]
  30. }
  31. });
  32. const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  33. __proto__: null,
  34. default: modal
  35. }, Symbol.toStringTag, { value: "Module" }));
  36. exports.__vite_glob_0_2 = __vite_glob_0_2;