src/store/modules/storeMsg/index.ts
@@ -1,8 +1,8 @@ import { defineStore } from 'pinia'; const usePinia = defineStore('user', { const useStoreMsg = defineStore('storeMsg', { state: () => ({ id: '', kbobj: {}, }), getters: { @@ -13,8 +13,8 @@ actions: { // Set user's information setkbObj(str) { this.id = str; setkbObj(obj) { this.kbobj = obj; }, // Reset user's information resetkbObj() { @@ -23,4 +23,4 @@ }, }); export default usePinia ; export default useStoreMsg ;