fix: 사령부 복사하기 순서 지연 수정 시도

This commit is contained in:
2023-02-21 02:04:03 +09:00
parent ff822561cd
commit d7e57f30eb
+7 -1
View File
@@ -56,7 +56,7 @@
top: `${btnPos * 30 + 25}px`, top: `${btnPos * 30 + 25}px`,
right: '10px', right: '10px',
}" }"
@blur="isCopyButtonShown = false" @blur="hideCopyButton()"
@click="tryCopy()" @click="tryCopy()"
> >
복사하기 복사하기
@@ -117,6 +117,12 @@ function dragStart() {
isDragToggle.value = true; isDragToggle.value = true;
} }
function hideCopyButton(){
setTimeout(() => {
isCopyButtonShown.value = false;
}, 1);
}
function eqSet<T>(as: Set<T>, bs: Set<T>) { function eqSet<T>(as: Set<T>, bs: Set<T>) {
if (as.size !== bs.size) return false; if (as.size !== bs.size) return false;
for (var a of as) if (!bs.has(a)) return false; for (var a of as) if (!bs.has(a)) return false;