This commit is contained in:
jslightham
2020-02-27 11:39:24 -05:00
parent fca7d1e8db
commit 52d2d79548
11 changed files with 121 additions and 25 deletions

View File

@@ -1,8 +1,35 @@
import Vue from 'vue'
import App from './App.vue'
import Buefy from 'buefy'
Vue.use(Buefy)
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')
import VueRouter from 'vue-router';
Vue.use(VueRouter);
import VueAxios from 'vue-axios';
import axios from 'axios';
Vue.use(VueAxios, axios);
Vue.config.productionTip = false;
import HelloWorld from './components/HelloWorld.vue';
import Login from './components/Login.vue';
const routes = [
{
name: 'home',
path: '/',
component: HelloWorld
},
{
name: 'login',
path: '/login',
component: Login
}
];
const router = new VueRouter({ mode: 'history', routes: routes});
new Vue(Vue.util.extend({ router }, App)).$mount('#app');