/* * @Author: Kane * @Date: 2023-02-28 01:22:48 * @LastEditors: Kane * @FilePath: /task_schedule/src/router/index.js * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved. */ import { createRouter, createWebHashHistory } from "vue-router"; const routes = [ { path: "/", name: "Root", redirect: "Login", hidden: true, }, { path: "/login", name: "Login", hidden: true, component: () => import("@/views/Login.vue"), }, { path: "/public", name: "Public", hidden: true, component: () => import("@/views/Public.vue"), }, ]; const router = createRouter( { history: createWebHashHistory(), routes, } ); export { router };