Replies: 1 comment 3 replies
-
你这里的 style.href = 'assets/style.dark.css';
+ document.head.appendChild(style); 这算是文档上的错误 ,不过这里还涉及到 移除问题,我会修正这部分文档 。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
本人是一名后端开发者,第一次接触前端,如果有不足还请见谅。
问题:在使用ng-alain 时,按照官方文档实现 主题切换:https://ng-alain.com/theme/customize-theme/zh
也是把 changeTheme 方法放入到了代码中(如下图)。但是在项目运行时并没有出现主题的更变。
希望能得到大佬们的解惑,那将不胜感激!
Beta Was this translation helpful? Give feedback.
All reactions