создал homepage

This commit is contained in:
dderbentsov
2023-09-17 15:44:30 +03:00
parent 4bdd665d1f
commit c2eb6bf1e9
3 changed files with 33 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import TheLogin from "@/pages/login/TheLogin";
import LoggedInLayout from "@/components/LoggedInLayout";
import TheMedicalCard from "@/pages/newMedicalCard/TheMedicalCard";
import { fetchWrapper } from "@/shared/fetchWrapper";
import TheHome from "@/pages/home/TheHome";
const ifNotAuthenticated = async (to, from, next) => {
const data = await fetchWrapper.get("users/me");
@@ -34,7 +35,8 @@ export default createRouter({
beforeEnter: ifAuthenticated,
children: [
{ path: "", redirect: "calendar" },
{ path: "", redirect: "home" },
{ path: "home", component: TheHome },
{ path: "calendar", component: TheCalendar },
{ path: "medcards", component: TheMedcards },
{ path: "settings", component: TheSettings },