You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matrix-chat/src/main.js

27 lines
379 B
JavaScript

import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import {router} from './router.js'
Vue.config.productionTip = false
Vue.use(VueRouter)
export default {
methods: {
router(route){router.push(route)}
}
}
new Vue({
el: '#app',
router,
template: '<App/>',
components: {App},
data(){
return {
}
}
}).$mount('#app')