This commit is contained in:
付民康
2025-03-13 19:45:34 +08:00
parent bbdf67499c
commit c7690e109a
2 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
<d-select v-model="searchType" :options="options"></d-select>
</template>
<template #append>
<d-icon name="search" style="font-size: inherit;" />
<d-icon @click="search" name="search" style="font-size: inherit;" />
</template>
</d-input>
</template>
@@ -29,7 +29,7 @@ const search = () => {
document.querySelector('#golbalSearch').blur();
return;
}
router.push({ name: 'search', query: { val: searchStr.value || '', type: route?.query?.type || 'License' }});
router.push({ name: 'Search', query: { val: searchStr.value || '', type: route?.query?.type || 'License' }});
};
const handleClear = () => {
router.push({ name: 'home' });