INNER CODE UNIT · TypeScript

NotFoundView

opensquilla/opensquilla · opensquilla-webui/src/router/index.ts:22

const NotFoundView = () => import('@/views/NotFoundView.vue')

export const routes: RouteRecordRaw[] = [
  ...sharedRoutes,
  ...(platform.capabilities.hasWebConfig ? webRoutes : []),
  { path: '/:pathMatch(.*)*', name: 'not-found', component: NotFoundView, meta: { title: 'Not Found', platforms: ['web', 'desktop'] } },
]

export const router = createRouter({
  history: createWebHistory(basePath),
  routes,
  scrollBehavior: contentScrollBehavior,
})

function isChatRoutePath(path: string): boolean {
  return path === '/chat' || path === '/chat/new'
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…