mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-10 08:22:27 +08:00
47 lines
1.0 KiB
TypeScript
47 lines
1.0 KiB
TypeScript
import { RouteRecordRaw } from 'vue-router';
|
|
import { Layout } from '@/router/constant';
|
|
import { CheckCircleOutlined } from '@vicons/antd';
|
|
import { renderIcon } from '@/utils/index';
|
|
|
|
const routes: Array<RouteRecordRaw> = [
|
|
{
|
|
path: '/result',
|
|
name: 'Result',
|
|
redirect: '/result/success',
|
|
component: Layout,
|
|
meta: {
|
|
title: '结果页面',
|
|
icon: renderIcon(CheckCircleOutlined),
|
|
sort: 4,
|
|
},
|
|
children: [
|
|
{
|
|
path: 'success',
|
|
name: 'result-success',
|
|
meta: {
|
|
title: '成功页',
|
|
},
|
|
component: () => import('@/views/result/success.vue'),
|
|
},
|
|
{
|
|
path: 'fail',
|
|
name: 'result-fail',
|
|
meta: {
|
|
title: '失败页',
|
|
},
|
|
component: () => import('@/views/result/fail.vue'),
|
|
},
|
|
{
|
|
path: 'info',
|
|
name: 'result-info',
|
|
meta: {
|
|
title: '信息页',
|
|
},
|
|
component: () => import('@/views/result/info.vue'),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|