Closed initchen closed 4 years ago
可能是因为vue的数据绑定, 修改表格数据的时候, 如果修改了文本框的内容, 但是没有点击保存, 直接点击放弃或关掉dialog, 数据会回显到表格。 目前我的解决方案是用对象拷贝的方式
可以解决问题就行,我也不确定那种方案比较优雅,所以暂时没有解决
https://github.com/enilu/web-flash/commit/eef89b8cc8854c717a5ecf396ae13e43adf2e019#diff-ae3a16aae5f05a3176e75e01a041f193
可能是因为vue的数据绑定, 修改表格数据的时候, 如果修改了文本框的内容, 但是没有点击保存, 直接点击放弃或关掉dialog, 数据会回显到表格。 目前我的解决方案是用对象拷贝的方式