Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在之前的逻辑中,当用户点击“重命名实例”时,弹窗默认显示的名称是实例的原名。由于校验器会检查名称是否已存在,导致用户一打开弹窗就会看到“此实例已存在”的错误提示。
此外,用户通常认为“重名”是指与其他实例名称冲突,保持原名不应被视为错误。这不符合用户的使用习惯,且容易造成误导。
现在会进行判断,如果是原名则什么都不做。