forked from FoundKeyGang/FoundKey
use nextTick instead of setTimeout
This commit is contained in:
parent
6998cae7e3
commit
54f0b67b25
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { ref, nextTick } from 'vue';
|
||||
import * as foundkey from 'foundkey-js';
|
||||
import { i18n } from '@/i18n';
|
||||
import { defaultStore } from '@/store';
|
||||
|
@ -145,7 +145,7 @@ function performSeek() {
|
|||
|
||||
function toggleVisible() {
|
||||
hide.value = !hide.value;
|
||||
setTimeout(() => { stop(hide.value); }, 100);
|
||||
nextTick(() => { stop(hide.value); });
|
||||
}
|
||||
|
||||
function display() {
|
||||
|
|
Loading…
Reference in a new issue