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