修正元件已存在但每張子元件沒有收到父層資料的資料契約缺口。
現在要做:請在 index.html 的「checkpoint service-card props binding」位置完成:在已註冊的 service-card 上補回 :service 綁定
貼上位置:index.html:checkpoint service-card props binding 區塊,先保留同一檔案的其他內容。
<service-card
v-for="service in services"
:key="service.id"
:service="service"
@select="selectService"
></service-card>預期結果:修正前兩張卡顯示 fallback;修正後分別顯示主要服務與定期維護。
驗收證據:Elements 的兩張卡片文字與 main.js 的 services 陣列逐筆一致,Console 無 required prop 或 unresolved component 警告。
卡住時先看這裡
常見錯誤:把 service 寫成字串、只改 props 宣告,或重新複製整個元件而沒有修正父層 attribute。
第一個檢查:只看 checkpoint/files/index.html 的 service-card 開始標籤,確認有 :service="service"。