2020-01-04 20:10:29 +08:00

20 lines
363 B
JavaScript

import Vue from 'vue';
import App from './App';
import { router } from './router';
import { scrollToAnchor } from './utils';
if (process.env.NODE_ENV !== 'production') {
Vue.config.productionTip = false;
}
new Vue({
el: '#app',
mounted() {
if (this.$route.hash) {
scrollToAnchor(this.$route.hash);
}
},
render: h => h(App),
router
});