import type { RouteRecordRaw } from 'vue-router'

export const routes: Array<RouteRecordRaw> = [
  // 对话
  {
    path: '/:accessToken',
    name: 'chat',
    component: () => import('@/views/chat/index.vue'),
  },
  // 对话用户登录
  {
    path: '/login/:accessToken',
    name: 'login',
    component: () => import('@/views/chat/user-login/index.vue'),
  },
  // 对话用户登录
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/error/404.vue'),
  },
  {
    path: '/no-service',
    name: 'NoService',
    component: () => import('@/views/error/NoService.vue'),
  },
  // 对话
  {
    path: '/share/:link',
    name: 'Share',
    component: () => import('@/views/chat/Share.vue'),
  },
]
