mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
19 lines
363 B
JavaScript
19 lines
363 B
JavaScript
import { createApp } from 'vue';
|
|
import App from './App';
|
|
import VueRouter from 'vue-router';
|
|
import { router } from './router';
|
|
import { scrollToAnchor } from './utils';
|
|
|
|
const app = createApp({
|
|
el: '#app',
|
|
mounted() {
|
|
if (this.$route.hash) {
|
|
scrollToAnchor(this.$route.hash);
|
|
}
|
|
},
|
|
render: (h) => h(App),
|
|
router,
|
|
});
|
|
|
|
app.use(VueRouter);
|