mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 09:42:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			523 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			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);
 |