You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
509 B
28 lines
509 B
import { createPinia, defineStore } from 'pinia'
|
|
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
|
|
export const useMainStore = defineStore('main', {
|
|
state: () => {
|
|
return {
|
|
card: {
|
|
cname: '',
|
|
ename: '',
|
|
logo: ''
|
|
}
|
|
}
|
|
},
|
|
getters: {
|
|
|
|
},
|
|
actions: {
|
|
addCard(payload: any) {
|
|
this.card = payload
|
|
},
|
|
},
|
|
})
|
|
|
|
const pinia = createPinia().use(piniaPluginPersistedstate)
|
|
|
|
export default pinia
|
|
|