Browse Source

docs: update darkmode document

pointhalo 3 years ago
parent
commit
692aefbae6
1 changed files with 1 additions and 1 deletions
  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;
         if (body.hasAttribute('theme-mode')) {
             body.removeAttribute('theme-mode');
-            // 以下这行代码,window.setMode仅用于当通过本Demo切换时,通知Semi官网Header记录更新当前模式(只用于演示)。在您的代码里无需存在。
+            // 以下这行代码,window.setMode仅用于当通过本Demo切换时,通知Semi官网Header记录更新当前模式(只用于演示)。在您的代码里无需存在。
             window.setMode('light');
         } else {
             body.setAttribute('theme-mode', 'dark');