浏览代码

docs: update darkmode document

pointhalo 3 年之前
父节点
当前提交
692aefbae6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      content/start/dark-mode/index.md

+ 1 - 1
content/start/dark-mode/index.md

@@ -32,7 +32,7 @@ function Demo() {
         const body = document.body;
         const body = document.body;
         if (body.hasAttribute('theme-mode')) {
         if (body.hasAttribute('theme-mode')) {
             body.removeAttribute('theme-mode');
             body.removeAttribute('theme-mode');
-            // 以下这行代码,window.setMode仅用于当通过本Demo切换时,通知Semi官网Header记录更新当前模式(只用于演示)。在您的代码里无需存在。
+            // 以下这行代码,window.setMode仅用于当通过本Demo切换时,通知Semi官网Header记录更新当前模式(只用于演示)。在您的代码里无需存在。
             window.setMode('light');
             window.setMode('light');
         } else {
         } else {
             body.setAttribute('theme-mode', 'dark');
             body.setAttribute('theme-mode', 'dark');