Skip to content

Commit

Permalink
fix: use redirect property instead hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkaroid committed Jun 28, 2022
1 parent 46d9e52 commit ab7e215
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import 'chart.js'
import 'hchs-vue-charts'
import VueNumber from 'vue-number-animation'
import axios from 'axios';
Vue.prototype.$http = axios;

Vue.use(window.VueCharts)
Vue.use(VueNumber)

Vue.config.productionTip = false

new Vue({
router,
render: h => h(App)
}).$mount('#app')
22 changes: 22 additions & 0 deletions src/router.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import VueChartJS from '@/views/VueChartJS'

Vue.use(Router)

export default new Router({
routes: [
{
path: '/',
name: 'Home',
redirect: '/graph',
component: Home
},
{
path: '/graph',
name: 'VueChartJS',
component: VueChartJS
}
]
})

0 comments on commit ab7e215

Please sign in to comment.