# Discourse 主题组件 \`'use strict'\` 变更预告 - 升级后主题将失效

**URL:** <https://meta.discourse.org/t/upcoming-theme-components-use-strict-change-themes-break-after-upgrading-discourse/185870>\
**Category:** Support\
**Created:** [2021年四月7日 12:20 UTC](https://meta.discourse.org/t/upcoming-theme-components-use-strict-change-themes-break-after-upgrading-discourse/185870 "2021-04-07T12:20:59Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [2021年四月8日 06:40 UTC](https://meta.discourse.org/t/upcoming-theme-components-use-strict-change-themes-break-after-upgrading-discourse/185870/17 "2021-04-08T06:40:17Z")

</div>

你好 @Pad_Pors，

我认为你的问题更与此相关。🙂

> [@Restrict editing of remote themes](https://meta.discourse.org/t/restrict-editing-of-remote-themes/170051?u=dodesz):
>
> For quite a while, best practice has been to avoid editing themes installed from a remote Git repository locally on Discourse. Any changes to theme code or uploads get wiped out when updating the theme from the remote repo. In this commit, we’ve removed the ability to locally edit a remote theme and are now enforcing this best practice in Discourse. What happens if I have a remote theme with local changes? Nothing at this point. Your theme stays as is until you remove it or update it from re…

关于你提到的另一个话题：

> [@Pad\_Pors](#):
>
> 以前有一个“编辑主题”的按钮，但现在它提示“如果你想编辑此主题，必须在其仓库上提交更改”（[https://github.com/discourse/discourse-two-columns-banner.git）。](https://github.com/discourse/discourse-two-columns-banner.git%EF%BC%89%E3%80%82)

所以我认为你有一段时间没有更新你的 Discourse 了。

---

_[View the full topic](https://meta.discourse.org/t/upcoming-theme-components-use-strict-change-themes-break-after-upgrading-discourse/185870)._
