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-19_axios-01-start/src/main.js

23 lines
473 B
JavaScript
Raw Permalink Normal View History

2021-03-19 17:28:32 +01:00
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
2021-03-20 15:40:07 +01:00
import axios from "axios"
axios.defaults.baseURL = "https://axios-test-44b62-default-rtdb.europe-west1.firebasedatabase.app"
2021-03-19 17:28:32 +01:00
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
2021-03-20 15:08:55 +01:00
if (module.hot) {
module.hot.accept(); // already had this init code
module.hot.addStatusHandler(status => {
if (status === 'prepare') console.clear();
});
}