51 lines
1.4 KiB
JavaScript
Executable file
51 lines
1.4 KiB
JavaScript
Executable file
import Vue from 'vue';
|
|
import Router from 'vue-router';
|
|
import Home from './views/Home.vue';
|
|
import Unread from './views/Unread';
|
|
import Conversations from './views/Conversations';
|
|
import Chat from './views/Chat.vue';
|
|
|
|
Vue.use(Router);
|
|
|
|
export default new Router({
|
|
mode: 'hash',
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'home',
|
|
component: Home,
|
|
},
|
|
{
|
|
path: '/unread',
|
|
name: 'unread',
|
|
// route level code-splitting
|
|
// this generates a separate chunk (about.[hash].js) for this route
|
|
// which is lazy-loaded when the route is visited.
|
|
component: Unread,
|
|
},
|
|
{
|
|
path: '/campiagn',
|
|
name: 'campiagn',
|
|
// route level code-splitting
|
|
// this generates a separate chunk (about.[hash].js) for this route
|
|
// which is lazy-loaded when the route is visited.
|
|
component: Unread,
|
|
},
|
|
{
|
|
path: '/conversations',
|
|
name: 'conversations',
|
|
// route level code-splitting
|
|
// this generates a separate chunk (about.[hash].js) for this route
|
|
// which is lazy-loaded when the route is visited.
|
|
component: Conversations,
|
|
},
|
|
{
|
|
path: '/conversations/:conversationId',
|
|
name: 'chat',
|
|
// route level code-splitting
|
|
// this generates a separate chunk (about.[hash].js) for this route
|
|
// which is lazy-loaded when the route is visited.
|
|
component: Chat,
|
|
},
|
|
],
|
|
});
|