之後即可讀取到router的props. 1. import {withRouter} from 'next/router'. 2. import Layout from '../components/MyLayout.js'.
確定! 回上一頁