const detail = () => {// pages/news/[id].jsx
// next 只反对 query 不反对 params,as 参数是为了好看
router.push({
pathname:'/news',
query:{id: 1},
}, '/news/1')
const detail = () => {// pages/news/[id].jsx
// next 只反对 query 不反对 params,as 参数是为了好看
router.push({
pathname:'/news',
query:{id: 1},
}, '/news/1')