mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 04:37:16 +00:00
refactor: migrate simple composable usage syntax to pinia store usage syntax
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -33,7 +33,9 @@ const emit = defineEmits(['baseCreated'])
|
||||
|
||||
const { appInfo } = useGlobal()
|
||||
|
||||
const { project, loadProject } = useProject()
|
||||
const projectStore = useProject()
|
||||
const { loadProject } = projectStore
|
||||
const { project } = projectStore
|
||||
|
||||
const useForm = Form.useForm
|
||||
|
||||
|
||||
@@ -31,7 +31,9 @@ const props = defineProps<{
|
||||
|
||||
const emit = defineEmits(['baseUpdated'])
|
||||
|
||||
const { project, loadProject } = useProject()
|
||||
const projectStore = useProject()
|
||||
const { loadProject } = projectStore
|
||||
const { project } = projectStore
|
||||
|
||||
const useForm = Form.useForm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user