现在已损坏。
我们曾依赖此组件来使“分类 + 最新”视图(在我们的情况下为默认视图)的主题卡片可点击。自今天更新到最新的 3.1.0beta8(现在显示为 3.2.0.beta1-dev)以来,该组件已停止正常工作。
现在光标的活动状态仍然是可点击的,但主题区域不可点击。打开浏览器的控制台会显示一个错误,这可能有助于开发人员识别问题:
未捕获的 TypeError: this.router is undefined
function navigateToTopic(topic, href) {
if (this.siteSettings.page_loading_indicator !== "slider") {
// With the slider, it feels nicer for the header to update once the rest of the topic content loads,
// so skip setting it early.
this.appEvents.trigger("header:update-topic", topic);
}
this.session.set("lastTopicIdViewed", {
topicId: topic.id,
historyUuid: this.router.location.getState?.().uuid
});
_url.default.routeTo(href || topic.get("url"));
return false;
}
抛出错误的行:
historyUuid: this.router.location.getState?.().uuid
这是否与核心中计划/正在进行的 Ember 升级有关?
