2023-10-25 19:55:18 +08:00
|
|
|
import {
|
|
|
|
defineStore
|
|
|
|
} from 'pinia'
|
|
|
|
|
|
|
|
export const userInfoStore = defineStore('counter', {
|
|
|
|
state: () => ({
|
2023-10-27 19:26:03 +08:00
|
|
|
userInfo: {}
|
2023-10-25 19:55:18 +08:00
|
|
|
}),
|
|
|
|
getters: {},
|
|
|
|
actions: {
|
|
|
|
saveUserInfo(userInfo) {
|
2023-10-27 19:26:03 +08:00
|
|
|
this.userInfo = userInfo
|
2023-10-25 19:55:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|