Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[t-tree-selecet] 使用多选树,选项赋值,初始值为空数组[],组件报错value类型不正确,且小程序不显示组件内容 #2313

Closed
sxx526488950 opened this issue Aug 23, 2023 · 1 comment · Fixed by #2315
Labels
bug Something isn't working in progress issue or pull request is in progress

Comments

@sxx526488950
Copy link

tdesign-miniprogram 版本

1.1.10

重现链接

No response

重现步骤

data: {
skillOptions: [], //技能标签选择树
selectValue: [], //选择的值
},

onLoad(options) {
this.querySkillTags()
},
/**获取职业技能标签 */
async querySkillTags() {
const res = await getSkillTags()
const tree = this.filterTree(res)
this.setData({
skillOptions: tree,
})
this.setData({
selectValue: []
})
},

期望结果

期望小程序能正常显示,二级树形选择器

实际结果

后台报错value赋值类型不正确,并且页面未显示组件内容

基础库版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@LeeJim LeeJim added bug Something isn't working in progress issue or pull request is in progress labels Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress issue or pull request is in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants