Files
cdTestPlant3/chengduTestPlant/src/store/modules/doc.js

25 lines
425 B
JavaScript
Raw Normal View History

2023-06-04 20:01:58 +08:00
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