zhangxiao
2024-08-17 fa5fd89d1fd0f2d0b0bb1944b3ac4a452c49f83a
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 ;