Merge pull request 'feat:任务审核仪表盘动态更新' (#278) from fix/change_task into test
Reviewed-on: #278pull/279/head
commit
d87bdc93ba
@ -0,0 +1,35 @@
|
|||||||
|
import { store } from '@/store'
|
||||||
|
import { defineStore } from 'pinia'
|
||||||
|
|
||||||
|
export interface ConfigState {
|
||||||
|
|
||||||
|
DataConfig: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export const useDataHeaderStore = defineStore({
|
||||||
|
id: 'app-config',
|
||||||
|
state: (): ConfigState => ({
|
||||||
|
|
||||||
|
DataConfig: false,
|
||||||
|
|
||||||
|
}),
|
||||||
|
getters: {
|
||||||
|
|
||||||
|
getDataConfig():boolean {
|
||||||
|
return this.DataConfig
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
|
||||||
|
setDataConfig(value) {
|
||||||
|
this.DataConfig = value
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
// Need to be used outside the setup
|
||||||
|
export function useConfig() {
|
||||||
|
return useDataHeaderStore(store)
|
||||||
|
}
|
Loading…
Reference in new issue