Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
汪安军
2026-06-15 14:11:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4192a19ae1067f738c38a69752044c9adafe7da4
4192a19a
1 parent
a630beb8
修复编译错误
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
23 deletions
src/router/routes/modules/test/index.js
src/router/routes/modules/test/index.js
View file @
4192a19
...
...
@@ -15,28 +15,34 @@ const index = [{
title
:
'DOM转image'
,
},
children
:
[],
},
{
path
:
'/test-slot'
,
name
:
'test-slot'
,
component
:
()
=>
import
(
'@/views/test/test-slot.vue'
),
redirect
:
''
,
meta
:
{
icon
:
''
,
title
:
'测试slot插槽'
,
},
children
:
[],
},
{
// 配置404为动态路由中转页面
path
:
'/:pathMatch(.*)*'
,
redirect
:
'/404'
},
{
path
:
'/404'
,
name
:
'404'
,
component
:
()
=>
import
(
'@/views/test/404.vue'
),
meta
:
{
icon
:
''
,
title
:
'404'
,
},
children
:
[],
}];
},
// src/views/test/* 在 .gitignore 中被忽略,干净环境没有下面两个测试页面。
// 保留原配置注释,避免生产构建解析不存在的组件而失败。
// {
// path: '/test-slot',
// name: 'test-slot',
// component: () => import('@/views/test/test-slot.vue'),
// redirect: '',
// meta: {
// icon: '',
// title: '测试slot插槽',
// },
// children: [],
// },
// { // 配置404为动态路由中转页面
// path: '/:pathMatch(.*)*',
// redirect: '/404'
// },
// {
// path: '/404',
// name: '404',
// component: () => import('@/views/test/404.vue'),
// meta: {
// icon: '',
// title: '404',
// },
// children: [],
// }
];
export
default
index
;
...
...
Please
register
or
login
to post a comment