新增欢迎首页

This commit is contained in:
gyq
2026-04-01 10:39:24 +08:00
parent f648a7ea5e
commit c87c999d42
10 changed files with 194 additions and 55 deletions

View File

@@ -24,61 +24,17 @@ export const constantRoutes: RouteRecordRaw[] = [
},
{
path: "/",
path: '/',
component: Layout,
redirect: "/index",
meta: {
title: "数据中心",
icon: "数据统计",
alwaysShow: true,
},
redirect: '/index',
children: [
{
path: "index",
component: () => import("@/views/data/index.vue"),
name: "",
path: 'index',
component: () => import('@/views/index/index.vue'),
name: 'index',
meta: {
title: "经营数据",
affix: false,
keepAlive: true,
},
},
{
path: "sales",
name: "",
component: () => import("@/views/data/sales.vue"),
meta: {
title: "销售统计",
affix: false,
keepAlive: true,
},
},
{
path: "table",
name: "",
component: () => import("@/views/data/table.vue"),
meta: {
title: "台桌统计",
affix: false,
keepAlive: true,
},
},
{
path: "finance",
name: "",
component: () => import("@/views/data/finance.vue"),
meta: {
title: "财务报表"
},
},
{
path: "work",
name: "workStatistics",
component: () => import("@/views/data/work.vue"),
meta: {
title: "收银交班记录",
affix: false,
keepAlive: true,
title: '首页',
icon: 'homepage',
},
},
{
@@ -91,9 +47,79 @@ export const constantRoutes: RouteRecordRaw[] = [
component: () => import("@/views/error/404.vue"),
meta: { hidden: true },
},
],
]
},
// {
// path: "/",
// component: Layout,
// redirect: "/index",
// meta: {
// title: "数据中心",
// icon: "数据统计",
// alwaysShow: true,
// },
// children: [
// {
// path: "index",
// component: () => import("@/views/data/index.vue"),
// name: "",
// meta: {
// title: "经营数据",
// affix: false,
// keepAlive: true,
// },
// },
// {
// path: "sales",
// name: "",
// component: () => import("@/views/data/sales.vue"),
// meta: {
// title: "销售统计",
// affix: false,
// keepAlive: true,
// },
// },
// {
// path: "table",
// name: "",
// component: () => import("@/views/data/table.vue"),
// meta: {
// title: "台桌统计",
// affix: false,
// keepAlive: true,
// },
// },
// {
// path: "finance",
// name: "",
// component: () => import("@/views/data/finance.vue"),
// meta: {
// title: "财务报表"
// },
// },
// {
// path: "work",
// name: "workStatistics",
// component: () => import("@/views/data/work.vue"),
// meta: {
// title: "收银交班记录",
// affix: false,
// keepAlive: true,
// },
// },
// {
// path: "401",
// component: () => import("@/views/error/401.vue"),
// meta: { hidden: true },
// },
// {
// path: "404",
// component: () => import("@/views/error/404.vue"),
// meta: { hidden: true },
// },
// ],
// },
// {
// path: "/shop",
// component: Layout,
// meta: {