koa koa-router Unexpected MODIFI

2021-11-19  本文已影响0人  翾_4f88

在"koa-router": "^10.1.1"中
router.get('/*', async (ctx) => { //定义路由以及对应处理
ctx.body = 'Hello World!';
});
会报错
不能使用星号
https://github.com/koajs/router/issues/104

上一篇 下一篇

猜你喜欢

热点阅读