|
@@ -2,8 +2,8 @@ import { useCatalogue } from '@tresjs/core'
|
|
import { getCurrentInstance } from 'vue'
|
|
import { getCurrentInstance } from 'vue'
|
|
|
|
|
|
export function useCientos() {
|
|
export function useCientos() {
|
|
- const { appContext } = getCurrentInstance()
|
|
|
|
- const { catalogue, extend } = useCatalogue(appContext.app)
|
|
|
|
|
|
+ const appContext = getCurrentInstance()?.appContext
|
|
|
|
+ const { catalogue, extend } = useCatalogue(appContext?.app)
|
|
|
|
|
|
return {
|
|
return {
|
|
catalogue,
|
|
catalogue,
|