Ngiler SH3LL 360
Home
Information
Create File
Create Folder
:
/
home
/
tbf
/
tbfguest.tbf.ro
/
src
/
router
/
Information Server
MySQL :
OFF
Perl :
OFF
CURL :
ON
WGET :
OFF
PKEXEC :
OFF
Directive
Local Value
IP Address
89.40.16.97
System
Linux server.atelieruldeit.ro 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User
tbf
PHP Version
7.3.33
Software
Apache
Doc root
Writable
close
Edit File :
index.js
| Size :
1.30
KB
Copy
/** @format */ import { createRouter, createWebHistory } from "vue-router"; import { app } from "@/main.js"; const routes = [ { path: "/login", name: "login", component: () => import("../views/auth/Login.vue"), meta: { auth: undefined, layout: "auth" }, beforeEnter: (to, from, next) => { const auth = app.config.globalProperties.$auth; if (auth.check()) { if (auth.user().rights.role === "super_admin") { next({ name: "guests" }); } else { next({ name: "guests" }); } } else { next(); } }, }, { path: "/guests", name: "guests", component: () => import("../views/public/guests/Index.vue"), meta: { auth: true, layout: "landing" }, }, { path: "/404", name: "not_found", component: () => import("../views/public/NotFound.vue"), meta: { auth: undefined, layout: "auth" } }, { path: "/403", name: "forbidden", component: () => import("../views/public/Forbidden.vue"), meta: { auth: undefined, layout: "auth" } }, { path: "/:pathMatch(.*)*", name: "not-exist", component: () => import("../views/public/NotFound.vue"), meta: { auth: undefined, layout: "auth" }, }, ]; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes, scrollBehavior(to, from, savedPosition) { return { top: 0 }; }, }); export default router;
Back