init
This commit is contained in:
13
store/modules/config.js
Normal file
13
store/modules/config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const useConfigStore = defineStore('config', () => {
|
||||
const config = ref()
|
||||
const setConfig = (val) => {
|
||||
config.value = val
|
||||
}
|
||||
return {
|
||||
config,
|
||||
setConfig
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user