mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
This PR has the following fixes 1. preview of article inside the iframe, earlier this didn't work because the iframe didn't get the URL correctly. We fix that by passing the URL is a query instead 2. Emoji picker caused a weird redirect, this was only happening when the chunk was loaded async, this PR changes it to use regular loading instead
45 lines
1.1 KiB
JavaScript
Executable File
45 lines
1.1 KiB
JavaScript
Executable File
import { createRouter, createWebHashHistory } from 'vue-router';
|
|
import ViewWithHeader from './components/layouts/ViewWithHeader.vue';
|
|
|
|
export default createRouter({
|
|
history: createWebHashHistory(),
|
|
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'),
|
|
},
|
|
{
|
|
path: '/article',
|
|
name: 'article-viewer',
|
|
component: () => import('./views/ArticleViewer.vue'),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|