25 lines
425 B
JavaScript
25 lines
425 B
JavaScript
|
|
import { defineStore } from "pinia"
|
||
|
|
|
||
|
|
const useDocStore = defineStore("doc", {
|
||
|
|
state: () => ({
|
||
|
|
auth: undefined,
|
||
|
|
appId: undefined,
|
||
|
|
appSecret: undefined,
|
||
|
|
globalParams: undefined
|
||
|
|
}),
|
||
|
|
|
||
|
|
getters: {
|
||
|
|
setDoc(state) {
|
||
|
|
return { ...state }
|
||
|
|
}
|
||
|
|
},
|
||
|
|
|
||
|
|
actions: {
|
||
|
|
setInfo(data) {
|
||
|
|
this.$patch(data)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})
|
||
|
|
|
||
|
|
export default useDocStore
|