Discourse Meta
导入 User 类而不是直接使用 User
开发
Falco
(Falco)
2020 年1 月 23 日 23:27
2
将
var currentUser = Discourse.User.current();
更改为
var currentUser = api.getCurrentUser();
在话题中显示帖子
相关话题
话题
回复
浏览量
活动
How to find out if user logged in
Support
5
1292
2020 年10 月 3 日
Import Category class in a component
Development
2
1154
2020 年1 月 13 日
Set current User in Javascript
Development
6
3247
2017 年9 月 18 日
Deprecation notice: Import getURL
Support
1
557
2020 年7 月 13 日
Modernizing inline script tags for templates & JS API
Development
dev-news
46
5916
2026 年3 月 25 日