From 918cec5f4c69434b845548df6fbaad77c2ac8113 Mon Sep 17 00:00:00 2001 From: ray_wuhao <443547225@qq.com> Date: Fri, 14 Jul 2023 22:56:49 +0800 Subject: [PATCH] =?UTF-8?q?v4.1.2=EF=BC=8C=E7=B4=A7=E6=80=A5=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=97=A0=E9=99=90=E9=87=8D=E5=AE=9A=E5=90=91?= =?UTF-8?q?=E8=87=B3=E9=A6=96=E9=A1=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ src/router/modules/demo/doc.ts | 8 ++++---- src/views/doc/index.tsx | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f39a6803..885efa2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGE LOG +## 4.1.2 + +### Fixes + +- 紧急修复由于路由配置错误,导致无限重定向至首页问题 + ## 4.1.1 ### Feats diff --git a/src/router/modules/demo/doc.ts b/src/router/modules/demo/doc.ts index f4779208..71e44238 100644 --- a/src/router/modules/demo/doc.ts +++ b/src/router/modules/demo/doc.ts @@ -4,7 +4,7 @@ import { LAYOUT } from '@/router/constant/index' import type { AppRouteRecordRaw } from '@/router/type' const doc: AppRouteRecordRaw = { - path: '', + path: '/doc', name: 'RDocLayout', component: LAYOUT, meta: { @@ -14,7 +14,7 @@ const doc: AppRouteRecordRaw = { }, children: [ { - path: '/doc', + path: 'doc-inside', name: 'RDocInside', component: () => import('@/views/doc/index'), meta: { @@ -22,7 +22,7 @@ const doc: AppRouteRecordRaw = { }, }, { - path: '', + path: 'doc-outside', name: 'RDoc', component: LAYOUT, meta: { @@ -31,7 +31,7 @@ const doc: AppRouteRecordRaw = { }, }, { - path: '', + path: 'doc-outside-local', name: 'RDocLocal', component: LAYOUT, meta: { diff --git a/src/views/doc/index.tsx b/src/views/doc/index.tsx index 383bbf8b..23dc6b56 100644 --- a/src/views/doc/index.tsx +++ b/src/views/doc/index.tsx @@ -22,6 +22,7 @@ const RTemplateDoc = defineComponent({ width="100%" height="100%" src="https://ray-template.yunkuangao.com/ray-template-doc/" + lazy > ) },