From 09e38dc3c420cc5c1db4dcb15638e876623ff8c6 Mon Sep 17 00:00:00 2001 From: Cindy Chang Date: Mon, 29 Jul 2024 11:11:00 +0800 Subject: [PATCH] sonar medium --- src/components/Discover/Map/Filter/ActAndSeq.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Discover/Map/Filter/ActAndSeq.vue b/src/components/Discover/Map/Filter/ActAndSeq.vue index d231f1e..d4fe548 100644 --- a/src/components/Discover/Map/Filter/ActAndSeq.vue +++ b/src/components/Discover/Map/Filter/ActAndSeq.vue @@ -148,7 +148,9 @@ export default { // 拖曳結束要顯示箭頭,但最後一個不用 const lastChild = evt.item.lastChild; const listIndex = this.listSequence.length - 1 - evt.oldIndex !== listIndex ? lastChild.style.display = '' : null; + if (evt.oldIndex !== listIndex) { + lastChild.style.display = ''; + } // reset: 拖曳最後一個元素時,倒數第二的元素的箭頭要隱藏 this.lastItemIndex = null; },