fix(数据大屏): 修复鼠标置顶出错问题 #12593

This commit is contained in:
wangjiahao 2024-10-10 16:53:05 +08:00
parent 4e92047955
commit 58fed7b3f3

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
}