This commit is contained in:
@ -51,7 +51,7 @@
|
|||||||
)"
|
)"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="recommend-card"
|
class="recommend-card"
|
||||||
@click="handleProductionCardClick(item.id.toString() || '')"
|
@click="handleProductCardClick(item.id.toString() || '')"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<el-image
|
<el-image
|
||||||
@ -164,12 +164,12 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleProductionCardClick = (documentId: string) => {
|
const handleProductCardClick = (documentId: string) => {
|
||||||
// 使用路由导航到产品详情页
|
// 使用路由导航到产品详情页
|
||||||
if (documentId) {
|
if (documentId) {
|
||||||
const localePath = useLocalePath();
|
const localePath = useLocalePath();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
router.push(localePath(`/productions/${documentId}`));
|
router.push(localePath(`/products/${documentId}`));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user