init
This commit is contained in:
77
osdictvue/src/router/index.js
Normal file
77
osdictvue/src/router/index.js
Normal file
@ -0,0 +1,77 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import SearchView from '@/components/search/SearchView'
|
||||
import Registration from '@/components/registration/RegistrationView'
|
||||
import LoginView from '@/components/login/LoginView'
|
||||
import PasswordResetView from '@/components/passwordreset/PasswordresetView'
|
||||
import WordView from '@/components/words/WordView'
|
||||
import WordAdd from '@/components/wordsadd/WordAdd'
|
||||
import ManagementWords from '@/components/management/WordsView'
|
||||
import ManagementMeanings from '@/components/management/MeaningsView'
|
||||
import MeaningAppend from '@/components/meaningappend/meaningAppendView'
|
||||
import MeaningAdd from '@/components/meaningadd/meaningAddView'
|
||||
import CollectCard from '@/components/words/CollectCardView'
|
||||
// test
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
export default new Router({
|
||||
mode: 'history',
|
||||
routes: [
|
||||
{
|
||||
path: '/registration',
|
||||
name: 'Registation',
|
||||
component: Registration
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
name: 'Main',
|
||||
component: SearchView
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'Login',
|
||||
component: LoginView
|
||||
},
|
||||
{
|
||||
path: '/password-reset',
|
||||
name: 'PasswordReset',
|
||||
component: PasswordResetView
|
||||
},
|
||||
{
|
||||
path: '/word',
|
||||
name: 'word',
|
||||
component: WordView
|
||||
},
|
||||
{
|
||||
path: '/word-add',
|
||||
name: 'WordAdd',
|
||||
component: WordAdd
|
||||
},
|
||||
{
|
||||
path: '/management/words',
|
||||
name: 'ManagementWords',
|
||||
component: ManagementWords
|
||||
},
|
||||
{
|
||||
path: '/meaningappend',
|
||||
name: 'MeaningAppend',
|
||||
component: MeaningAppend
|
||||
},
|
||||
{
|
||||
path: '/meaningadd',
|
||||
name: 'MeaningAdd',
|
||||
component: MeaningAdd
|
||||
},
|
||||
{
|
||||
path: '/management/meanings',
|
||||
name: 'ManagementMeanings',
|
||||
component: ManagementMeanings
|
||||
},
|
||||
{
|
||||
path: '/collected-words',
|
||||
name: 'CollectedWords',
|
||||
component: CollectCard
|
||||
}
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user