1 Star 0 Fork 118

ForCherry/tov-template

forked from 帝莎编程/tov-template 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 747 Bytes
一键复制 编辑 原始数据 按行查看 历史
markthree 提交于 2022-01-21 12:59 . fix: 修复暗黑模式
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<!-- <link rel="icon" href="/favicon.ico" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
<script>
(function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('vueuse-color-scheme') || 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light'))
document.documentElement.classList.toggle('dark', true)
})()
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/forcherry/tov-template.git
git@gitee.com:forcherry/tov-template.git
forcherry
tov-template
tov-template
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385