@mypaas/hcm-cli
Version:
Vant Cli 是一个 Vue 组件库构建工具,通过 Vant Cli 可以快速搭建一套功能完备的 Vue 组件库。
25 lines (21 loc) • 523 B
JavaScript
import Vue from 'vue';
import App from './App';
import { router } from './router';
import { scrollToAnchor } from './utils';
import DemoPlayground from './components/DemoPlayground';
if (process.env.NODE_ENV !== 'production') {
Vue.config.productionTip = false;
}
Vue.component(DemoPlayground.name, DemoPlayground);
setTimeout(() => {
new Vue({
el: '#app',
mounted() {
if (this.$route.hash) {
scrollToAnchor(this.$route.hash);
}
},
render: (h) => h(App),
router,
});
}, 0);