From 33d942796351cb93591225ed4856e58607e38d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=A0=E9=9D=99=E8=90=9D=E8=8E=89?= Date: Mon, 4 Dec 2023 20:21:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=BC=E8=87=B4=E7=9A=84=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/utils/route/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b52dafb3..5494d209 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "stylelint": "~15.11.0", "stylelint-config-standard": "^34.0.0", "stylelint-order": "~6.0.3", - "typescript": "~5.2.2", + "typescript": "~5.3.2", "vite": "^4.5.0", "vite-plugin-mock": "^3.0.0", "vite-svg-loader": "^4.0.0", diff --git a/src/utils/route/index.ts b/src/utils/route/index.ts index 693c6620..7ad53c78 100644 --- a/src/utils/route/index.ts +++ b/src/utils/route/index.ts @@ -24,7 +24,7 @@ LayoutMap.set('IFRAME', IFRAME); let dynamicViewsModules: Record Promise>; // 动态从包内引入单个Icon -async function getMenuIcon(iconName: string) { +async function getMenuIcon(iconName: string): Promise { const RenderIcon = iconsPath[`../../../node_modules/tdesign-icons-vue-next/esm/components/${iconName}.js`]; const Icon = await RenderIcon();