From a26d500ab385e30fabfffa5c75385b3ab148a063 Mon Sep 17 00:00:00 2001 From: ningmengchongshui <916415899@qq.com> Date: Tue, 18 Jun 2024 10:50:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E6=AD=A5=E6=96=B0=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes.tsx b/routes.tsx index 6ad8e60..fc7cd4c 100644 --- a/routes.tsx +++ b/routes.tsx @@ -1,7 +1,7 @@ import React from 'react' import { movies } from './data' -import { createDynamic } from 'yunzai/utils' -const dynamic = createDynamic(import.meta.url) +import { createDynamicComponent } from 'yunzai/utils' +const dynamic = createDynamicComponent(import.meta.url) const Hello = (await dynamic('./views/hello.tsx')).default const Music = (await dynamic('./views/music.tsx')).default const Config = [