Files
vue-learning/企业级管理系统/web/admin_system/src/router/index.js

32 lines
597 B
JavaScript
Raw Normal View History

2022-12-14 18:34:45 +08:00
/*
* @Author: Kane
* @Date: 2022-12-14 15:12:46
* @LastEditors: Kane
* @LastEditTime: 2022-12-14 16:19:17
* @FilePath: \admin_system\src\router\index.js
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
2022-12-14 15:23:07 +08:00
import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
{
2022-12-14 18:34:45 +08:00
path: "/",
name: "Home",
redirect: "Login",
2022-12-14 15:23:07 +08:00
},
{
2022-12-14 18:34:45 +08:00
path: "/login",
name: "Login",
component: () => import("../views/account/Login.vue"),
2022-12-14 15:23:07 +08:00
}
2022-12-14 18:34:45 +08:00
];
2022-12-14 15:23:07 +08:00
const router = createRouter({
history: createWebHashHistory(),
routes
})
export default router