路由使用问题?
来源:5-3 Nuxt.js基础(3)

irebirth
2019-09-22
之前koa2-learn使用路由是app.use(index.routes(), index.allowedMethods())使用,nuxt使用路由是app.use(cityInterface.routes()).use(cityInterface.allowedMethods())使用,有什么区别?还是写错了?
写回答
1回答
-
快乐动起来呀
2019-09-23
没写错呀,这个地方不是写死的,你看下index接口和cityinterface接口的路由定义
00
相似问题