1 line
1.3 KiB
Plaintext
1 line
1.3 KiB
Plaintext
{"version":3,"file":"modal.js","sources":["../../../../../src/sheep/store/modal.js"],"sourcesContent":["import { defineStore } from 'pinia'\r\n\r\nconst modal = defineStore({\r\n id: 'modal',\r\n state: () => ({\r\n auth: '', // 授权弹框 accountLogin|smsLogin|resetPassword|changeMobile|changePassword|changeUsername\r\n share: false, // 分享弹框\r\n menu: false, // 快捷菜单弹框\r\n advHistory: [], // 广告弹框记录\r\n lastTimer: {\r\n // 短信验证码计时器,为了防止刷新请求做了持久化\r\n smsLogin: 0,\r\n changeMobile: 0,\r\n resetPassword: 0,\r\n changePassword: 0,\r\n },\r\n }),\r\n persist: {\r\n enabled: true,\r\n strategies: [\r\n {\r\n key: 'modal-store',\r\n paths: ['lastTimer', 'advHistory'],\r\n },\r\n ],\r\n },\r\n})\r\n\r\nexport default modal\r\n"],"names":["defineStore"],"mappings":";;AAEA,MAAM,QAAQA,cAAAA,YAAY;AAAA,EACxB,IAAI;AAAA,EACJ,OAAO,OAAO;AAAA,IACZ,MAAM;AAAA;AAAA,IACN,OAAO;AAAA;AAAA,IACP,MAAM;AAAA;AAAA,IACN,YAAY,CAAE;AAAA;AAAA,IACd,WAAW;AAAA;AAAA,MAET,UAAU;AAAA,MACV,cAAc;AAAA,MACd,eAAe;AAAA,MACf,gBAAgB;AAAA,IACjB;AAAA,EACL;AAAA,EACE,SAAS;AAAA,IACP,SAAS;AAAA,IACT,YAAY;AAAA,MACV;AAAA,QACE,KAAK;AAAA,QACL,OAAO,CAAC,aAAa,YAAY;AAAA,MAClC;AAAA,IACF;AAAA,EACF;AACH,CAAC;;;;;;"} |