47 lines
838 B
JavaScript
Raw Normal View History

2023-02-28 01:16:49 +08:00
/*
* @Author: Kane
2023-02-28 09:30:02 +08:00
* @Date: 2023-02-28 01:22:48
2023-02-28 01:16:49 +08:00
* @LastEditors: Kane
2023-02-28 19:58:03 +08:00
* @FilePath: /task_schedule/src/router/index.js
2023-02-28 09:30:02 +08:00
* @Description:
2023-02-28 01:16:49 +08:00
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
2023-02-28 09:30:02 +08:00
2023-02-28 01:16:49 +08:00
import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
{
path: "/",
name: "Root",
redirect: "Login",
hidden: true,
},
{
path: "/login",
name: "Login",
hidden: true,
2023-02-28 19:58:03 +08:00
component: () => import("@/views/Login.vue"),
},
{
path: "/public",
name: "Public",
hidden: true,
component: () => import("@/views/Public.vue"),
2023-02-28 01:16:49 +08:00
},
];
const router = createRouter(
{
history: createWebHashHistory(),
routes,
}
);
2023-03-01 18:47:16 +08:00
//路由守卫
router.beforeEach((to) =>
{
});
2023-02-28 01:16:49 +08:00
export { router };