123456789101112131415161718192021222324252627282930 |
- import { defineStore } from "pinia";
- const useXunJianStore = defineStore("xunJian", {
- state: () => ({
- planTabs: 0,
- siteId: null,
- planSonId: null,
- planSonId1: null,
- siteNubmber: null,
- siteStatus: null,
- contentArray: {},
- collectDataList: [],
- }),
- persist: {
-
-
- storage: window ? window.localStorage : uni.setStorageSync(),
-
- beforeRestore: (context) => {
- console.log("Before" + context);
- },
- afterRestore: (context) => {
- console.log("After" + context);
- },
- },
- actions: {},
- });
- export default useXunJianStore;
|