tdesign-vue icon indicating copy to clipboard operation
tdesign-vue copied to clipboard

[TagInput] 无法解析Java Web后端返回List类型数据

Open Daman-Yang opened this issue 3 years ago • 5 comments

这个功能解决了什么问题

Java Web后端返回List类型数据是["1", "2"],但该组件只支持解析['1', '2']格式,虽然可以通过替换解决问题,但还是希望能改进一下。

你建议的方案是什么

完善数据解析

Daman-Yang avatar Aug 08 '22 16:08 Daman-Yang

👋 @DamanYang-cn,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] avatar Aug 08 '22 16:08 github-actions[bot]

♥️ 有劳 @chaishi @pengYYYYY 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @DamanYang-cn 。

github-actions[bot] avatar Aug 08 '22 16:08 github-actions[bot]

看不明白这个问题,"" 双引号 和 '' 单引号,不都是字符串么,为何一个可以,一个不可以,提供一下浮现问题的代码哈

chaishi avatar Aug 09 '22 13:08 chaishi

要传入的应该是数组而不是字符串吧 Java Web返回的是不是一个字符串?是否应该JSON.parse一下?

LeoEatle avatar Aug 19 '22 06:08 LeoEatle

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。

github-actions[bot] avatar Sep 19 '22 06:09 github-actions[bot]

此 Issue 被自动关闭,因为它自被标记为过时 stale 以来已闲置 7 天。

github-actions[bot] avatar Sep 27 '22 06:09 github-actions[bot]