From 8be103470df8f8c025148e6541387f358389df34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A8=9C?= Date: Tue, 20 May 2025 10:26:08 +0800 Subject: [PATCH] =?UTF-8?q?iframe=E8=B7=AF=E7=94=B1=E4=BF=9D=E6=B4=BB?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 59be4cb..6f2bae5 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -46,8 +46,7 @@ const staticRoutes: Array = [ { path: '/witchainD', name: 'witchainD', - component: (): Promise => - import('src/views/tools/index.vue'), + children:[], // 这里不要添加component内容,否则会导致iframe重复渲染 }, { path: '/settings', @@ -83,4 +82,4 @@ const router = createRouter({ routes, }); -export default router; +export default router; \ No newline at end of file -- Gitee