Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.4k views
in Technique[技术] by (71.8m points)

element动态修改层级下拉数据以后报错处理?

需求:
原来的下拉数据
image.png

动态修改以后的
image.png

一个是境内一个是境外,当在境外选中数据以后,强行切换到境内,这个时候由于原来的下拉数据不存在导致报错
image.png

尝试过清空在境外选中的数据value值但是还是一样,应该是组件存了一个类似temp数据保存原来的值导致的,但是现在是有没有高手知道怎么防止报错(备注:切换使用的时候是没有问题的)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...