import Vue from ‘vue‘
import Router from ‘vue-router‘
import HelloWorld from ‘@/components/HelloWorld‘
import Test from ‘@/components/Test‘
import T123 from ‘@/components/T123‘
import T456 from ‘@/components/T456‘
import T789 from ‘@/components/T789‘
import Slots from ‘@/components/Slots‘
Vue.use(Router)
/* eslint-disable */
export default new Router({
routes: [
{
path: ‘/‘,
name: ‘HelloWorld‘,
component: HelloWorld
},
{
path: ‘/test‘,
name: ‘Test‘,
component: Test
},
{
path: ‘/T123‘,
name: ‘T123‘,
component: T123
},
{
path: ‘/T456‘,
name: ‘T456‘,
component: T456
},
{
path: ‘/T789‘,
name: ‘T789‘,
component: T789
},
{
path: ‘/Slots‘,
name: ‘Slots‘,
component: Slots
}
]
})
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from ‘vue‘
import App from ‘./App‘
import router from ‘./router‘
import Antd from ‘ant-design-vue‘
import ‘ant-design-vue/dist/antd.css‘
Vue.config.productionTip = false
Vue.use(Antd)
/* eslint-disable no-new */
new Vue({
el: ‘#app‘,
router,
components: { App },
template: ‘<App/>‘
})
index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>myvue</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>