mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-23 08:00:55 +00:00
13 lines
269 B
Go
13 lines
269 B
Go
import { GlobalStore } from '@/store';
|
|
import { storeToRefs } from 'pinia';
|
|
|
|
export const useGlobalStore = () => {
|
|
const globalStore = GlobalStore();
|
|
const storeRefs = storeToRefs(globalStore);
|
|
|
|
return {
|
|
globalStore,
|
|
...storeRefs,
|
|
};
|
|
};
|