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();