TraceabilityAPP/store/userInfo.js

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