ac9c9e8244df59b63bc7f60465b05270c16decb3
1 import { createApp
} from
'vue'
2 import router from
'@/router'
3 import { UIClient
} from
'@/composables'
4 import App from
'@/App.vue'
6 const app
= createApp(App
)
9 .then(response
=> response
.json())
11 app
.config
.errorHandler
= (error
, instance
, info
) => {
12 console
.error('Error:', error
)
13 console
.info('Vue instance:', instance
)
14 console
.info('Error info:', info
)
15 // TODO: Add code for UI notifications or other error handling logic
17 app
.config
.globalProperties
.$UIClient
= UIClient
.getInstance(config
)
18 app
.use(router
).mount('#app')