在"koa-router": "^10.1.1"中
router.get('/*', async (ctx) => { //定义路由以及对应处理
ctx.body = 'Hello World!';
});
会报错
不能使用星号
https://github.com/koajs/router/issues/104
...">
在"koa-router": "^10.1.1"中
router.get('/*', async (ctx) => { //定义路由以及对应处理
ctx.body = 'Hello World!';
});
会报错
不能使用星号
https://github.com/koajs/router/issues/104
本文标题:koa koa-router Unexpected MODIFI
本文链接:https://www.haomeiwen.com/subject/ncbstrtx.html
网友评论