adding a global logger via mixin

This commit is contained in:
Andreas Zweili 2021-09-06 20:19:44 +02:00
parent 4605f7bd57
commit 11a3800d3a
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,9 @@
import { createApp } from 'vue';
import App from './App.vue';
import Logger from './mixins/logger';
const app = createApp(App)
const app = createApp(App);
app.mixin(Logger);
app.mount('#app');

View File

@ -0,0 +1,5 @@
export default {
mounted() {
console.log('Mounted');
}
};