-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ApiSelect.vue文件版本更新之后联动更新字段不生效了 #6999
Comments
我记得当时把 |
zy |
有更详细的代码吗? |
你使用的场景是否如下: 测试代码:
如果是如上使用,应该按如下更改: 如果你不是以上使用,可以提供下测试代码,让我们更好兼容。之前那样编写无意支持了联动。 |
是的,就是你说的这个用法,那岂不是系统中之前的联动表单的地方都要加上ifShow: true和ifShow:false? |
已修复,下一版本发布。(代码还原) |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
版本号:3.7.0
问题描述:
自从按照官方的更新把ApiSelect.vue文件中的
watchEffect(() => {
props.immediate && fetch();
});
改成props.immediate && fetch();
之后,页面联动选择数据查询就失效了。
比如选择设备品牌查询设备型号就无法调接口;
我是采用onchange然后写updateSchema
await updateSchema({
field: 'brandId',
component: 'ApiSelect',
componentProps: {
api: getDeviceBrandApi,
params: {
type: typeChoose,
},
这种形式去联动查询的;我把改回去就好了;
错误截图:
友情提示:
The text was updated successfully, but these errors were encountered: