Skip to content

feat: Enhance container data handling and status synchronization#12554

Merged
ssongliu merged 1 commit into1Panel-dev:dev-v2from
wu-mx:dev-v2
Apr 21, 2026
Merged

feat: Enhance container data handling and status synchronization#12554
ssongliu merged 1 commit into1Panel-dev:dev-v2from
wu-mx:dev-v2

Conversation

@wu-mx
Copy link
Copy Markdown
Contributor

@wu-mx wu-mx commented Apr 21, 2026

What this PR does / why we need it?

在 Gecko / Firefox 浏览器中,如果容器页面开启高频自动刷新且停留一段时间,则浏览器会出现极为明显的卡顿现象,严重影响使用体验。

屏幕截图 2026-04-21 175749

Profiler 排查显示 Vue 频繁 patch DOM 消耗大量 CPU,检查源码发现容器页刷新时会同时更新列表、状态统计、标签统计以及操作dropdown,单次刷新会触发多轮全量更新,vue 频繁 patch DOM 导致严重卡顿。

Summary of your change

修改更新逻辑,将 search(), refresh() 的更新逻辑改为并行拉取所有信息后统一合并,按需更新字段,减少 DOM patch 开销和无效更新,同时将容器状态 dropdown 改为弹出时渲染,避免随着 dom 一起全量更新等。

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot Bot commented Apr 21, 2026

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.

Details

Instructions 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.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot Bot commented Apr 21, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zhengkunwang223 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ssongliu ssongliu merged commit 4f97a78 into 1Panel-dev:dev-v2 Apr 21, 2026
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants