chore: update dir

This commit is contained in:
vben
2024-05-21 22:42:25 +08:00
parent f6087ce4e8
commit 20af961f09
20 changed files with 94 additions and 36 deletions

View File

@@ -1,9 +1,8 @@
import type { RouteRecordRaw } from 'vue-router';
import { AuthPageLayout } from '@/layouts';
import { Fallback } from '@vben/common-ui';
import { AuthPageLayout } from './layout';
/** 静态路由列表,访问这些页面可以不需要权限 */
const builtinRoutes: RouteRecordRaw[] = [
{

View File

@@ -1,7 +1,8 @@
import type { RouteRecordRaw } from 'vue-router';
import { BasicLayout } from '@/layouts';
import { builtinRoutes } from './builtin';
import { Layout } from './layout';
import { nestedRoutes } from './modules/nested';
import { outsideRoutes } from './modules/outside';
import { vbenRoutes } from './modules/vben';
@@ -10,7 +11,7 @@ import { vbenRoutes } from './modules/vben';
const dynamicRoutes: RouteRecordRaw[] = [
// 根路由
{
component: Layout,
component: BasicLayout,
meta: {
hideChildrenInMenu: true,
title: '首页',

View File

@@ -1,8 +0,0 @@
const Layout = () => import('@/layout.vue');
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
const AuthPageLayout = () =>
import('@vben/layouts').then((m) => m.AuthPageLayout);
export { AuthPageLayout, IFrameView, Layout };

View File

@@ -1,10 +1,10 @@
import type { RouteRecordRaw } from 'vue-router';
import { Layout } from '../layout';
import { BasicLayout } from '@/layouts';
export const nestedRoutes: RouteRecordRaw[] = [
{
component: Layout,
component: BasicLayout,
meta: {
keepAlive: true,
title: '多级菜单',

View File

@@ -1,10 +1,10 @@
import type { RouteRecordRaw } from 'vue-router';
import { IFrameView, Layout } from '../layout';
import { BasicLayout, IFrameView } from '@/layouts';
export const outsideRoutes: RouteRecordRaw[] = [
{
component: Layout,
component: BasicLayout,
meta: {
title: '外部页面',
},

View File

@@ -1,14 +1,13 @@
import type { RouteRecordRaw } from 'vue-router';
import { BasicLayout, IFrameView } from '@/layouts';
import { VBEN_GITHUB_URL } from '@vben/constants';
import { $t } from '@vben/locales/helper';
import { preference } from '@vben/preference';
import { IFrameView, Layout } from '@/router/routes/layout';
export const vbenRoutes: RouteRecordRaw[] = [
{
component: Layout,
component: BasicLayout,
meta: {
icon: preference.logo,
title: 'Vben Admin',