/
45case
/
ptable
Обзор
Документация
Войти
/
45case
/
ptable
Код
Запросы
3
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
src/app/router.ts
45 строк
1 KB
Olya
first_commit
06 июл 2026, 18:16
06 июл 2026, 18:16
0ff6e29
Код
Авторство
О чём код?
import { createRouter, createWebHistory } from "vue-router"; import CompoundPage from "@/pages/compounds/CompoundPage.vue"; import ElectronsPage from "@/pages/electrons/ElectronsPage.vue"; import HomePage from "@/pages/home/HomePage.vue"; import IsotopesPage from "@/pages/isotopes/IsotopesPage.vue"; import NotFoundPage from "@/pages/not-found/NotFoundPage.vue"; import PropertiesPage from "@/pages/properties/PropertiesPage.vue"; export const router = createRouter({ history: createWebHistory(), routes: [ { path: "/", name: "home", component: HomePage, }, { path: "/properties", name: "properties", component: PropertiesPage, }, { path: "/compounds", name: "compounds", component: CompoundPage, }, { path: "/electrons", name: "electrons", component: ElectronsPage, }, { path: "/isotopes", name: "isotopes", component: IsotopesPage, }, { path: "/:pathMatch(.*)*", name: "not-found", component: NotFoundPage, }, ], });