fix: 修复重定向错误
This commit is contained in:
parent
816eba39f1
commit
89d03fd067
|
@ -73,7 +73,7 @@ const adminList = [
|
||||||
{
|
{
|
||||||
path: '/components',
|
path: '/components',
|
||||||
component: '#',
|
component: '#',
|
||||||
redirect: '/components/icon',
|
redirect: '/components/form/default-form',
|
||||||
name: 'ComponentsDemo',
|
name: 'ComponentsDemo',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'router.component',
|
title: 'router.component',
|
||||||
|
@ -119,6 +119,7 @@ const adminList = [
|
||||||
{
|
{
|
||||||
path: 'table',
|
path: 'table',
|
||||||
component: '##',
|
component: '##',
|
||||||
|
redirect: '/components/table/default-table',
|
||||||
name: 'TableDemo',
|
name: 'TableDemo',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'router.table',
|
title: 'router.table',
|
||||||
|
@ -154,6 +155,7 @@ const adminList = [
|
||||||
{
|
{
|
||||||
path: 'editor-demo',
|
path: 'editor-demo',
|
||||||
component: '##',
|
component: '##',
|
||||||
|
redirect: '/components/editor-demo/editor',
|
||||||
name: 'EditorDemo',
|
name: 'EditorDemo',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'router.editor',
|
title: 'router.editor',
|
||||||
|
|
|
@ -124,7 +124,6 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: '/components',
|
path: '/components',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/components/icon',
|
|
||||||
name: 'ComponentsDemo',
|
name: 'ComponentsDemo',
|
||||||
meta: {
|
meta: {
|
||||||
title: t('router.component'),
|
title: t('router.component'),
|
||||||
|
@ -135,6 +134,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: 'form',
|
path: 'form',
|
||||||
component: getParentLayout(),
|
component: getParentLayout(),
|
||||||
|
redirect: '/components/form/default-form',
|
||||||
name: 'Form',
|
name: 'Form',
|
||||||
meta: {
|
meta: {
|
||||||
title: t('router.form'),
|
title: t('router.form'),
|
||||||
|
@ -170,6 +170,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: 'table',
|
path: 'table',
|
||||||
component: getParentLayout(),
|
component: getParentLayout(),
|
||||||
|
redirect: '/components/table/default-table',
|
||||||
name: 'TableDemo',
|
name: 'TableDemo',
|
||||||
meta: {
|
meta: {
|
||||||
title: t('router.table'),
|
title: t('router.table'),
|
||||||
|
@ -205,6 +206,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: 'editor-demo',
|
path: 'editor-demo',
|
||||||
component: getParentLayout(),
|
component: getParentLayout(),
|
||||||
|
redirect: '/components/editor-demo/editor',
|
||||||
name: 'EditorDemo',
|
name: 'EditorDemo',
|
||||||
meta: {
|
meta: {
|
||||||
title: t('router.editor'),
|
title: t('router.editor'),
|
||||||
|
|
|
@ -157,6 +157,7 @@ const AddAction = () => {
|
||||||
dialogTitle.value = t('exampleDemo.add')
|
dialogTitle.value = t('exampleDemo.add')
|
||||||
tableObject.currentRow = null
|
tableObject.currentRow = null
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
|
actionType.value = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
const delLoading = ref(false)
|
const delLoading = ref(false)
|
||||||
|
|
Loading…
Reference in New Issue