From 6a53559aa3e8d3e0d7238c6298117767df2d4283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=A0=E9=9D=99=E8=90=9D=E8=8E=89?= Date: Tue, 5 Dec 2023 11:49:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E8=BF=87=E6=B7=B1=E7=9A=84=E9=97=AE=E9=A2=98=20(#650)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复循环过深的问题 * fix: 修复依赖更新导致的类型错误 --- package.json | 2 +- src/pages/dashboard/base/components/TopPanel.vue | 10 +++++----- src/utils/route/index.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a012321..6db9477 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/pages/dashboard/base/components/TopPanel.vue b/src/pages/dashboard/base/components/TopPanel.vue index b969b93..005bf7c 100644 --- a/src/pages/dashboard/base/components/TopPanel.vue +++ b/src/pages/dashboard/base/components/TopPanel.vue @@ -2,7 +2,7 @@ @@ -77,25 +77,25 @@ const resizeTime = ref(1); const PANE_LIST = [ { - title: t('pages.dashboardBase.topPanel.card1'), + title: 'pages.dashboardBase.topPanel.card1', number: '¥ 28,425.00', upTrend: '20.5%', leftType: 'echarts-line', }, { - title: t('pages.dashboardBase.topPanel.card2'), + title: 'pages.dashboardBase.topPanel.card2', number: '¥ 768.00', downTrend: '20.5%', leftType: 'echarts-bar', }, { - title: t('pages.dashboardBase.topPanel.card3'), + title: 'pages.dashboardBase.topPanel.card3', number: '1126', upTrend: '20.5%', leftType: 'icon-usergroup', }, { - title: t('pages.dashboardBase.topPanel.card4'), + title: 'pages.dashboardBase.topPanel.card4', number: 527, downTrend: '20.5%', leftType: 'icon-file-paste', diff --git a/src/utils/route/index.ts b/src/utils/route/index.ts index aba0279..fedb846 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();