fix(web): change profile key type

This commit is contained in:
zhaoying
2026-04-17 19:51:01 +08:00
parent bb964c1ed8
commit 83d0fb9387
2 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-03 18:33:30 * @Date: 2026-02-03 18:33:30
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-04-14 16:03:41 * @Last Modified time: 2026-04-17 17:57:15
*/ */
/** /**
* End User Profile Component * End User Profile Component
@@ -89,11 +89,11 @@ const EndUserProfile = forwardRef<EndUserProfileRef, EndUserProfileProps>(({ cla
</div> </div>
<div> <div>
<div className="rb:text-[#7B8085]">{t('userMemory.role')}</div> <div className="rb:text-[#7B8085]">{t('userMemory.role')}</div>
<div className="rb:mt-0.5">{data?.profile?.role || '-'}</div> <div className="rb:mt-0.5">{data?.profile?.role?.join(' | ') || '-'}</div>
</div> </div>
<div> <div>
<div className="rb:text-[#7B8085]">{t('userMemory.domain')}</div> <div className="rb:text-[#7B8085]">{t('userMemory.domain')}</div>
<div className="rb:mt-0.5">{data?.profile?.domain || '-'}</div> <div className="rb:mt-0.5">{data?.profile?.domain?.join(' | ') || '-'}</div>
</div> </div>
<div> <div>
<div className="rb:text-[#7B8085]">{t('userMemory.expertise')}</div> <div className="rb:text-[#7B8085]">{t('userMemory.expertise')}</div>

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-03 17:57:15 * @Date: 2026-02-03 17:57:15
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-04-14 16:03:16 * @Last Modified time: 2026-04-17 17:57:00
*/ */
/** /**
* User Memory Detail Types * User Memory Detail Types
@@ -178,8 +178,8 @@ export interface EndUser {
created_at: string; created_at: string;
updated_at: string; updated_at: string;
profile: { profile: {
role: string; role: string[];
domain: string; domain: string[];
expertise: string[]; expertise: string[];
interests: string[]; interests: string[];
}; };