Skip to content

Commit 63ad0fc

Browse files
committed
refine code
1 parent 80a2817 commit 63ad0fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Vue.component('Sticky', Sticky);
2727
Vue.use(ElementUI);
2828
Vue.use(vueWaves);
2929

30+
Vue.config.productionTip = false;
31+
3032
// register global utility filters.
3133
Object.keys(filters).forEach(key => {
3234
Vue.filter(key, filters[key])
@@ -112,9 +114,11 @@ if (process.env === 'production') {
112114
// })(console.error);
113115

114116
new Vue({
117+
el: '#app',
115118
router,
116119
store,
117-
render: h => h(App)
118-
}).$mount('#app');
120+
template: '<App/>',
121+
components: { App }
122+
})
119123

120124

0 commit comments

Comments
 (0)