Browse Source

推荐跳转

CuddleNan 1 week ago
parent
commit
96e04096d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      myapp/src/app/tab1/tab1.page.html

+ 1 - 1
myapp/src/app/tab1/tab1.page.html

@@ -76,7 +76,7 @@
           *ngFor="let recipe of recommendedRecipes"
           *ngFor="let recipe of recommendedRecipes"
           (click)="goToRecipeDetail(recipe.objectId)"
           (click)="goToRecipeDetail(recipe.objectId)"
         >
         >
-          <ion-card class="recipe-card-hover">
+          <ion-card class="recipe-card-hover" (click)="goToDetail()">
             <ion-img [src]="recipe.image?.url || '/assets/images/default-food.jpg'"></ion-img>
             <ion-img [src]="recipe.image?.url || '/assets/images/default-food.jpg'"></ion-img>
             <ion-card-content class="p-4">
             <ion-card-content class="p-4">
               <h3 class="recipe-title">{{ recipe.title }}</h3>
               <h3 class="recipe-title">{{ recipe.title }}</h3>