add logout
Signed-off-by: garionion <github@entr0py.de>
This commit is contained in:
parent
89510a0a67
commit
09369d83c1
4 changed files with 49 additions and 15 deletions
|
@ -2,6 +2,7 @@ import { createWebHistory, createRouter } from "vue-router";
|
|||
import Home from "../views/Home.vue";
|
||||
const Settings = () => import("../views/Settings.vue");
|
||||
const Login = () => import("../views/Login.vue");
|
||||
const Sites = () => import("../views/Sites.vue");
|
||||
import { isLoggedIn } from "../api";
|
||||
|
||||
const routes = [
|
||||
|
@ -15,10 +16,16 @@ const routes = [
|
|||
name: "Settings",
|
||||
component: Settings,
|
||||
},
|
||||
{
|
||||
path: "/sites",
|
||||
name: "Sites",
|
||||
component: Sites,
|
||||
},
|
||||
{
|
||||
path: "/login",
|
||||
name: "Login",
|
||||
component: Login,
|
||||
props: (route) => ({ logout: route.query.logout }),
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue