zhuf 1 year ago
parent
commit
ccf58bd430
1 changed files with 8 additions and 0 deletions
  1. 8 0
      index.html

+ 8 - 0
index.html

@@ -5,6 +5,14 @@
     <link rel="icon" type="image/svg+xml" href="/vite.svg" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>数字教师</title>
+    <script>
+      {
+        const search = new URLSearchParams(location.search)
+        if (search.get('debug')) {
+          var vConsole = new window.VConsole();
+        }
+      }
+    </script>
   </head>
   <body class="m-0 p-0">
     <div id="app" class="h-screen w-screen bg-hex-22252f flex flex-col text-white overflow-y-scroll"></div>