refs #850 Replace router with typescript
This commit is contained in:
parent
b2c19bfaa5
commit
f46e7ee727
|
@ -12,7 +12,7 @@ import VueI18Next from '@panter/vue-i18next'
|
||||||
|
|
||||||
import './assets/fonts/fonts.css'
|
import './assets/fonts/fonts.css'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router'
|
import router from '@/router'
|
||||||
import store from './store'
|
import store from './store'
|
||||||
import i18next from '~/src/config/i18n'
|
import i18next from '~/src/config/i18n'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Router from 'vue-router'
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
export default new Router({
|
const router = new Router({
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/login',
|
path: '/login',
|
||||||
|
@ -156,3 +156,5 @@ export default new Router({
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
export default router
|
Loading…
Reference in New Issue