From 03c5f2cd2e0aa085f2949ad9d240a07611220625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AD=90=E9=BB=98?= <925456043@qq.com> Date: Wed, 4 Mar 2026 20:02:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E7=B1=BB=E5=9E=8B=E6=A3=80=E6=9F=A5=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - profile 页面使用 BasicUserInfo 的标准字段 nickname/loginName - 移除 use-echarts 未使用参数与类型,消除 TS6133 --- .../packages/effects/common-ui/src/ui/profile/profile.vue | 4 ++-- .../packages/effects/plugins/src/echarts/use-echarts.ts | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/easyflow-ui-usercenter/packages/effects/common-ui/src/ui/profile/profile.vue b/easyflow-ui-usercenter/packages/effects/common-ui/src/ui/profile/profile.vue index b1abb82..038f0a6 100644 --- a/easyflow-ui-usercenter/packages/effects/common-ui/src/ui/profile/profile.vue +++ b/easyflow-ui-usercenter/packages/effects/common-ui/src/ui/profile/profile.vue @@ -34,10 +34,10 @@ const tabsValue = defineModel('modelValue'); class="size-20" /> - {{ userInfo?.realName ?? '' }} + {{ userInfo?.nickname ?? '' }} - {{ userInfo?.username ?? '' }} + {{ userInfo?.loginName ?? '' }} diff --git a/easyflow-ui-usercenter/packages/effects/plugins/src/echarts/use-echarts.ts b/easyflow-ui-usercenter/packages/effects/plugins/src/echarts/use-echarts.ts index 2e52ab7..f5483e4 100644 --- a/easyflow-ui-usercenter/packages/effects/plugins/src/echarts/use-echarts.ts +++ b/easyflow-ui-usercenter/packages/effects/plugins/src/echarts/use-echarts.ts @@ -22,8 +22,6 @@ import echarts from './echarts'; type EchartsUIType = typeof EchartsUI | undefined; -type EchartsThemeType = 'dark' | 'light' | null; - function useEcharts(chartRef: Ref) { let chartInstance: echarts.ECharts | null = null; let cacheOptions: EChartsOption = {}; @@ -57,7 +55,7 @@ function useEcharts(chartRef: Ref) { }; }); - const initCharts = (t?: EchartsThemeType) => { + const initCharts = () => { const el = chartRef?.value?.$el; if (!el) { return;