Browse Source

目录链接改为chapter id

visuddhinanda 10 tháng trước cách đây
mục cha
commit
74f0eeb5be
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api-v8/resources/views/library/book/show.blade.php

+ 1 - 1
api-v8/resources/views/library/book/show.blade.php

@@ -79,7 +79,7 @@
                     <div class="card-body">
                         <div class="list-group">
                             @foreach($book['contents'] as $chapter)
-                            <a href="{{ route('book.read', $book['id']) }}?chapter={{ $loop->iteration }}"
+                            <a href="{{ route('book.read', $chapter['id']) }}?chapter={{ $loop->iteration }}"
                                 class="list-group-item list-group-item-action">
                                 <div class="d-flex w-100 justify-content-between">
                                     <h4 class="mb-1">{{ $chapter['title'] }}</h4>