mirror of https://github.com/nocodb/nocodb
Mert E
7 months ago
committed by
GitHub
1 changed files with 21 additions and 0 deletions
@ -0,0 +1,21 @@ |
|||||||
|
import { acceptHMRUpdate, defineStore } from 'pinia' |
||||||
|
|
||||||
|
// a placeholder for the org store which is used in cloud version
|
||||||
|
export const useOrg = defineStore('orgStore', () => { |
||||||
|
const org = ref() |
||||||
|
const orgId = ref(null) |
||||||
|
|
||||||
|
const loadOrg = async () => {} |
||||||
|
const updateOrg = async (_updateObj: any) => {} |
||||||
|
|
||||||
|
return { |
||||||
|
org, |
||||||
|
orgId, |
||||||
|
updateOrg, |
||||||
|
loadOrg, |
||||||
|
} |
||||||
|
}) |
||||||
|
|
||||||
|
if (import.meta.hot) { |
||||||
|
import.meta.hot.accept(acceptHMRUpdate(useOrg as any, import.meta.hot)) |
||||||
|
} |
Loading…
Reference in new issue