fix: 修复重定向错误

This commit is contained in:
kailong321200875 2022-08-20 10:22:58 +08:00
parent 816eba39f1
commit 89d03fd067
3 changed files with 7 additions and 2 deletions

View File

@ -73,7 +73,7 @@ const adminList = [
{
path: '/components',
component: '#',
redirect: '/components/icon',
redirect: '/components/form/default-form',
name: 'ComponentsDemo',
meta: {
title: 'router.component',
@ -119,6 +119,7 @@ const adminList = [
{
path: 'table',
component: '##',
redirect: '/components/table/default-table',
name: 'TableDemo',
meta: {
title: 'router.table',
@ -154,6 +155,7 @@ const adminList = [
{
path: 'editor-demo',
component: '##',
redirect: '/components/editor-demo/editor',
name: 'EditorDemo',
meta: {
title: 'router.editor',

View File

@ -124,7 +124,6 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
{
path: '/components',
component: Layout,
redirect: '/components/icon',
name: 'ComponentsDemo',
meta: {
title: t('router.component'),
@ -135,6 +134,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
{
path: 'form',
component: getParentLayout(),
redirect: '/components/form/default-form',
name: 'Form',
meta: {
title: t('router.form'),
@ -170,6 +170,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
{
path: 'table',
component: getParentLayout(),
redirect: '/components/table/default-table',
name: 'TableDemo',
meta: {
title: t('router.table'),
@ -205,6 +206,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
{
path: 'editor-demo',
component: getParentLayout(),
redirect: '/components/editor-demo/editor',
name: 'EditorDemo',
meta: {
title: t('router.editor'),

View File

@ -157,6 +157,7 @@ const AddAction = () => {
dialogTitle.value = t('exampleDemo.add')
tableObject.currentRow = null
dialogVisible.value = true
actionType.value = ''
}
const delLoading = ref(false)