1 Star 0 Fork 1

查无此人 / vue3-ts-pinia

forked from wooshiao / vue3-ts-element-plus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
wooshiao 提交于 2023-04-13 14:04 . feat: 增加权限及相关信息
<!--
* @Description:
* @Author: Xiaochuan-W
* @Date: 2022-11-02 14:39:07
* @LastEditors: Xiaochuan-W
* @LastEditTime: 2023-03-27 11:18:25
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%-title%></title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script>
(function (doc, win) {
var dpr = window.devicePixelRatio || 1;
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
docEl.style.fontSize = 40 * (clientWidth / 1920) + 'px';
// 设置data-dpr属性,留作的css hack之用
docEl.setAttribute('data-dpr', dpr);
};
if (!doc.addEventListener) return;
recalc()
win.addResize = function(){
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
}
win.unbindResize = function(){
win.removeEventListener(resizeEvt, recalc);
doc.removeEventListener('DOMContentLoaded', recalc);
}
})(document, window);
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/no-such-person-found/vue3-ts-pinia.git
git@gitee.com:no-such-person-found/vue3-ts-pinia.git
no-such-person-found
vue3-ts-pinia
vue3-ts-pinia
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891