first
This commit is contained in:
38
inspond-nuxt-safekiso/base/plugins/!.ts
Normal file
38
inspond-nuxt-safekiso/base/plugins/!.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
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;
|
||||
};
|
||||
*/
|
||||
});
|
||||
Reference in New Issue
Block a user