39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
export default defineNuxtPlugin((nuxtApp) => {
|
|
// _utils.log('defineNuxtPlugin() of !.ts executed...');
|
|
_crossCtl.setConfig(useRuntimeConfig().public);
|
|
|
|
/*
|
|
nuxtApp.hook('app:created', () => {
|
|
_utils.log('nuxtApp.hook, app:created');
|
|
});
|
|
nuxtApp.hook('app:beforeMount', () => {
|
|
_utils.log('nuxtApp.hook, app:beforeMount');
|
|
});
|
|
nuxtApp.hook('app:mounted', () => {
|
|
_utils.log('nuxtApp.hook, app:mounted');
|
|
});
|
|
|
|
|
|
nuxtApp.hook('vue:error', (..._args) => {
|
|
console.log('vue:error');
|
|
// if (process.client) {
|
|
// console.log(..._args)
|
|
// }
|
|
});
|
|
nuxtApp.hook('app:error', (..._args) => {
|
|
console.log('app:error');
|
|
// if (process.client) {
|
|
// console.log(..._args)
|
|
// }
|
|
});
|
|
|
|
nuxtApp.vueApp.config.errorHandler = (..._args) => {
|
|
console.log('global error handler');
|
|
// if (process.client) {
|
|
// console.log(..._args);
|
|
// }
|
|
return true;
|
|
};
|
|
*/
|
|
});
|