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: {
|
2023-11-23 10:58:26 +08:00
|
|
|
|
2023-10-25 19:55:18 +08:00
|
|
|
saveUserInfo(userInfo) {
|
2023-11-23 10:58:26 +08:00
|
|
|
console.log(userInfo,'1111111')
|
|
|
|
|
2023-10-27 19:26:03 +08:00
|
|
|
this.userInfo = userInfo
|
2023-10-25 19:55:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|