TraceabilityAPP/store/userInfo.js

15 lines
217 B
JavaScript

import {
defineStore
} from 'pinia'
export const userInfoStore = defineStore('counter', {
state: () => ({
user_id: ""
}),
getters: {},
actions: {
saveUserInfo(userInfo) {
this.user_id = userInfo
}
}
})