refresh-current-routes-model-from-application-template 2020-01-18 / Emberjsjavascript / 阅读耗时预计 1 分钟 1234567// app/controllers/applicationactions: { refreshCurrentModel() { let route = Ember.getOwner(this).lookup(`route:${get(this, 'currentRouteName')}`); return route.refresh(); }} 123{{!-- application.hbs --}}<button {{action 'refreshCurrentModel'}}>Refresh</button>{{outlet}} 〈 access token生成 Ember如何整合多说 〉