1

我遇到了一个奇怪的问题,即 Flow-Router 没有触发根 url 的操作

FlowRouter.route '/',
    name: 'home'
    action: ->
        BlazeLayout.render 'appLayout', header: 'header', main: 'home'

这会提供一个空白页面,但是当我将路由更改为其他内容(例如“/dog”)并转到该 URL 时,会触发操作并呈现页面

我正在使用 Flow-Router 2.10.1

4

0 回答 0