steedos-platform icon indicating copy to clipboard operation
steedos-platform copied to clipboard

[Bug]: 服务端throw error的message中如果带有冒号,冒号左侧的内容不会显示到前端提示文本中

Open yinlianghui opened this issue 8 months ago • 0 comments

Description

  • 接口返回的错误信息是正常完整的,问题在于用户在界面上看到的错误提示信息缺失了左侧部分
  • 移除冒号即可避开此问题
throw new Error(`域名已存在: ${doc.domain}`)

改为

throw new Error(`域名已存在 ${doc.domain}`)

就正常了

image

Steps To Reproduce 重现步骤

如题

Version 版本

2.7

yinlianghui avatar Jun 16 '24 12:06 yinlianghui