Newer
Older
smartwell_front / src / router / modules / mobile.ts
// 移动端路由
import type { Route } from '@/global'

const Layout = () => import('@/layouts/mobile.vue')

const routes: Route.recordRaw[] = [
  {
    path: '/home',
    component: Layout,
    redirect: '/home/index',
    name: 'Home',
    meta: {
      title: '首页',
    },
    children: [
      {
        path: 'index',
        component: () => import('@/views/mobile/example1/index.vue'),
        name: 'HomeIndex',
        meta: {
          title: '首页',
          isHeader: true, // 是否需要头部
          isBack: true, // 是否需要返回按钮
          isHome: false, // 是否需要回到首页按钮
        },
      },
    ],
  },
]

export default routes