首次提交
This commit is contained in:
24
chengduTestPlant/src/store/modules/doc.js
Normal file
24
chengduTestPlant/src/store/modules/doc.js
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
Reference in New Issue
Block a user