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

setProperties无法更新数据 #1286

Closed
Oct16th-Lcs opened this issue Aug 17, 2023 · 4 comments
Closed

setProperties无法更新数据 #1286

Oct16th-Lcs opened this issue Aug 17, 2023 · 4 comments

Comments

@Oct16th-Lcs
Copy link

问题描述

当调用setProperties方法时,更新对象数据 ,
原数据对象:
properties:{
name: '张三',
userId: '339579392646713355',
userText:'用户'
}

希望更新的数据对象:
properties:{
name: '张三',
userId: '340547697469558799',
userText:'用户'
}

调用lf.setProperties(),userId没有更新还是原来那个

@wumail
Copy link
Collaborator

wumail commented Aug 17, 2023

你好,我这边没有复现,最好提供个最小复现示例

@Oct16th-Lcs
Copy link
Author

是vue2更新对象的问题

@linlinNB
Copy link

@Oct16th-Lcs 请问老哥如何解决的,我这边也出现了同样的问题

@Oct16th-Lcs
Copy link
Author

@linlinNB 我的是因为异步更新的问题,改成同步就行,原来临时的解决方案是点确定关闭弹窗之后单独给需要更新的字段setProperties一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants