mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/store/userInfo.js

15 lines
219 B
JavaScript
Raw Permalink Normal View History

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
}
}
})