mirror of
https://github.com/yangzongzhuan/RuoYi-App.git
synced 2025-09-27 22:52:40 +00:00
13 lines
247 B
JavaScript
13 lines
247 B
JavaScript
![]() |
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
|
||
|
}
|
||
|
})
|