Files
fini-ui/src/router/routes.ts
T
2023-04-14 18:15:01 +08:00

81 lines
1.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { RouteRecordRaw } from "vue-router";
/**
* 路由meta对象参数说明
* meta: {
* title: 菜单栏及 tagsView 栏、菜单搜索名称(国际化)
* hidden: 是否隐藏此路由
* icon: 菜单、tagsView 图标,阿里:加 `iconfont xxx`,fontawesome:加 `fa xxx`
* }
*/
/**
* 静态路由(默认路由)
*/
export const staticRoutes: Array<RouteRecordRaw> = [
{
path: "/",
redirect: "/home",
component:()=> import("@/views/login/index.vue"),
meta: {
hidden: true,
},
},
{
path: "/home",
name: "XLogin",
component: () => import("@/views/login/index.vue"),
meta: {
hidden: true,
},
},
{
path: "/dashboard",
name: "Xdashboard",
component: () => import("@/views/dashBoard/index.vue"),
},
{
path: "/IPO",
name: "XIPO",
component: () => import("@/views/IPO/index.vue")
},
{
path: "/searchdash",
name: "Xsearchdash",
component: () => import("@/views/searchdash/index.vue")
},
{
path: "/searchipo",
name: "Xsearchipo",
component: () => import("@/views/searchipo/index.vue")
},
{
path: "/IPOcalendar",
name: "Xsearchipo",
component: () => import("@/views/IpoCalendar/index.vue")
},
{
path: "/404",
name: "404",
component: () => import("@/views/error/404.vue"),
meta: {
hidden: true,
},
},
/* 匹配任意的路由 必须最后注册 */
{
path: "/:pathMatch(.*)",
name: "Any",
redirect: "/404",
meta: {
hidden: true,
},
},
];
/**
* 定义动态路由
*/
// export const allAsyncRoutes: Array<RouteRecordRaw> = [];