feat(command palletes): fix recent page delay update
This commit is contained in:
parent
887ad8306f
commit
6717b533b0
@ -146,7 +146,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref, watch } from 'vue'
|
||||||
import { MagnifyingGlassIcon } from '@heroicons/vue/20/solid'
|
import { MagnifyingGlassIcon } from '@heroicons/vue/20/solid'
|
||||||
import {
|
import {
|
||||||
Combobox,
|
Combobox,
|
||||||
@ -163,7 +163,7 @@ import { useCommandPalattesStore } from '@/stores/command'
|
|||||||
import { navigationIcon } from '@/utils/route'
|
import { navigationIcon } from '@/utils/route'
|
||||||
|
|
||||||
const command = useCommandPalattesStore()
|
const command = useCommandPalattesStore()
|
||||||
const recent = computed(() => query.value === '' ? command.readRecent() : [])
|
const recent = computed(() => command.open ? command.readRecent() : [])
|
||||||
const query = ref('')
|
const query = ref('')
|
||||||
const filteredMenus = computed(() =>
|
const filteredMenus = computed(() =>
|
||||||
query.value === ''
|
query.value === ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user