diff --git a/src/router/index.ts b/src/router/index.ts index 59be4cbdf11f68df9c390cd14d2cde15bf0a1460..6f2bae541e37f2fe193ee31816820227c1732e31 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