This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
vuejs_course/2021-03-27_routing-01-start.../src/main.js

18 lines
337 B
JavaScript

import { createApp } from 'vue';
import App from './App.vue';
import router from './router.js';
const app = createApp(App);
app.use(router);
app.mount('#app');
if (module.hot) {
0;
module.hot.accept(); // already had this init code
module.hot.addStatusHandler(status => {
if (status === 'prepare') console.clear();
});
}