Преглед изворни кода

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;
         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');