feat(command palletes): fix recent page delay update

This commit is contained in:
Dede Fuji Abdul 2023-10-30 16:40:23 +07:00
parent 887ad8306f
commit 6717b533b0

View File

@ -146,7 +146,7 @@
</template>
<script setup lang="ts">
import { computed, ref } from 'vue'
import { computed, ref, watch } from 'vue'
import { MagnifyingGlassIcon } from '@heroicons/vue/20/solid'
import {
Combobox,
@ -163,7 +163,7 @@ import { useCommandPalattesStore } from '@/stores/command'
import { navigationIcon } from '@/utils/route'
const command = useCommandPalattesStore()
const recent = computed(() => query.value === '' ? command.readRecent() : [])
const recent = computed(() => command.open ? command.readRecent() : [])
const query = ref('')
const filteredMenus = computed(() =>
query.value === ''