feiyang-web/public/index.html
2024-07-15 22:26:06 +08:00

38 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>飞阳建设工程有限公司</title>
<link href="https://cdn.staticfile.org/quill/1.3.6/quill.snow.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico">
<script type="text/JavaScript">
function isMobile() {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
return /Mobi|Android/i.test(userAgent);
}
if (isMobile()) {
// 处理移动端逻辑
window.location.href='https://www.fygroup.cn/mobile/'
console.log(111)
} else {
// 处理PC端逻辑
console.log("当前环境是PC端");
}
</script>
</head>
<body>
<!-- <noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript> -->
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>