mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
43 lines
962 B
JavaScript
Executable File
43 lines
962 B
JavaScript
Executable File
import Vue from 'vue';
|
|
import Router from 'vue-router';
|
|
import ViewWithHeader from './components/layouts/ViewWithHeader.vue';
|
|
|
|
Vue.use(Router);
|
|
|
|
export default new Router({
|
|
mode: 'hash',
|
|
routes: [
|
|
{
|
|
path: '/unread-messages',
|
|
name: 'unread-messages',
|
|
component: () => import('./views/UnreadMessages.vue'),
|
|
},
|
|
{
|
|
path: '/campaigns',
|
|
name: 'campaigns',
|
|
component: () => import('./views/Campaigns.vue'),
|
|
},
|
|
{
|
|
path: '/',
|
|
component: ViewWithHeader,
|
|
children: [
|
|
{
|
|
path: '',
|
|
name: 'home',
|
|
component: () => import('./views/Home.vue'),
|
|
},
|
|
{
|
|
path: '/prechat-form',
|
|
name: 'prechat-form',
|
|
component: () => import('./views/PreChatForm.vue'),
|
|
},
|
|
{
|
|
path: '/messages',
|
|
name: 'messages',
|
|
component: () => import('./views/Messages.vue'),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|