iopProject
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
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: "/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> = [];
|
||||
Reference in New Issue
Block a user