This commit is contained in:
2025-06-23 19:07:23 +08:00
parent 1ae5c75f5e
commit b98de4746d
5 changed files with 95 additions and 17 deletions

View File

@@ -1,11 +1,26 @@
import {defineStore} from "pinia";
import {reactive} from "vue";
import {reactive, ref} from "vue";
export const useSystemStore = defineStore('SystemStore', () => {
const accountManagementPo = reactive({
pid: null,
});
const message = ref([]);
return {
accountManagementPo,
message,
}
}, {
persist: {
key: 'SystemStore',
pick: ['message'],
storage: {
getItem(key) {
return uni.getStorageSync(key);
},
setItem(key, value) {
uni.setStorageSync(key, value);
}
},
}
});