Merge pull request #12620 from dataease/pr@dev-v2@fix_top-componnet

fix(数据大屏): 修复鼠标置顶出错问题 #12593
This commit is contained in:
王嘉豪 2024-10-10 16:53:49 +08:00 committed by GitHub
commit c7b63c2f00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ export const layerStore = defineStore('layer', {
if (curInfo) {
const { index, componentData, targetComponent } = curInfo
if (index < componentData.length - 1) {
componentData.splice(targetComponent, 1)
componentData.splice(index, 1)
componentData.push(targetComponent)
curComponentIndex.value = componentData.length - 1
}