fix: 修复删除多个文件夹时确认按钮不显示加载态的问题,并减少删除时不必要的basedir请求#12187
fix: 修复删除多个文件夹时确认按钮不显示加载态的问题,并减少删除时不必要的basedir请求#12187wanghe-fit2cloud merged 1 commit into1Panel-dev:dev-v2from
basedir请求#12187Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/lgtm |
What this PR does / why we need it?
在删除大量文件夹时,删除对话框的确认按钮不会变为加载态,这会让用户以为删除操作始终未开始,影响用户操作,如果用户继续点击会出现大量并发重复的删除请求。
另外,删除每个文件夹时都会请求
basedirapi,在删除多个文件夹时会造成大量重复请求。Summary of your change
loading.value = true;原来的位置有问题,已提前至删除操作的顶部basedirPlease indicate you've done the following: