给批量检验添加新路由或者参数,便于从首页直接进入
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<template #prepend>
|
||||
<d-dropdown @toggle="onCateToggle($event)">
|
||||
<div class="flex items-center gap-1 cursor-pointer">
|
||||
{{ selectedCate }}
|
||||
{{ selectedCate }}
|
||||
<d-icon :rotate="cateRotate" name="icon-chevron-down-2"></d-icon>
|
||||
</div>
|
||||
<template #menu>
|
||||
@@ -54,7 +54,7 @@
|
||||
</d-dropdown-menu>
|
||||
<d-button color="primary" variant="solid" @click="search">搜索</d-button>
|
||||
</div>
|
||||
<d-button ref="origin" icon="share" class="batch-btn">批量校验</d-button>
|
||||
<d-button @click="check" ref="origin" icon="share" class="batch-btn">批量校验</d-button>
|
||||
<div class="home-information">
|
||||
<div class="info-title">
|
||||
<div class="sub-title">
|
||||
@@ -136,6 +136,13 @@ const openAdvancedSearch = () => {
|
||||
inputGlow.value = isOpen.value;
|
||||
};
|
||||
|
||||
const check = () => {
|
||||
router.push({
|
||||
name: 'Search',
|
||||
query: { tab: 'BatchVerify' }, // 通过查询参数指定 Tab
|
||||
});
|
||||
}
|
||||
|
||||
const closeOutside = () => {
|
||||
return false
|
||||
}
|
||||
@@ -192,7 +199,7 @@ onMounted(() => {
|
||||
if (homeSearch.value) {
|
||||
resizeObserver.observe(homeSearch.value);
|
||||
}
|
||||
|
||||
|
||||
updateDropdownWidth();
|
||||
});
|
||||
|
||||
@@ -374,4 +381,4 @@ onBeforeUnmount(() => {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user