feat!: 将项目有Strapi迁移至Directus #43

Manually merged
remilia merged 30 commits from feat/directus into master 2025-10-24 17:22:40 +08:00
75 changed files with 2853 additions and 926 deletions
Showing only changes of commit 393dc3885b - Show all commits

View File

@ -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}`));
} }
}; };