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

某些场景下覆盖json类型的配置会导致配置为空 #4483

Closed
3 tasks done
huayaoyue6 opened this issue Jul 26, 2022 · 2 comments · Fixed by #4486
Closed
3 tasks done

某些场景下覆盖json类型的配置会导致配置为空 #4483

huayaoyue6 opened this issue Jul 26, 2022 · 2 comments · Fixed by #4486
Labels
bug Categorizes issue or PR as related to a bug. help wanted

Comments

@huayaoyue6
Copy link

描述bug

某些场景下覆盖json类型的配置会导致配置为空

复现

通过如下步骤可以复现:

  1. 打开一个json类型的配置。
  2. 使用ctrl+a快捷键全选并使用ctrl+c复制配置
  3. 点击修改按钮
  4. 在修改页面使用ctrl+a快捷键全选并使用ctrl+v粘贴。目的用于覆盖当前配置。
  5. 点击提交,发现提交上去的是空数据,原来的数据丢失了。

期望
期望是覆盖而非数据丢失。

image

额外的细节和日志

@huayaoyue6
Copy link
Author

#2280 应该是一个问题:

@huayaoyue6
Copy link
Author

未完全测试的解决方案:

处再二次判断一下namespace.editText的值是否为空。

                if (angular.equals(namespace.editText, "")) {
                    namespace.editText = parseModel2Text(namespace);
                }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug. help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants