mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
20 lines
364 B
JavaScript
20 lines
364 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,
|
|
});
|