Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 03:49:19 +08:00
This commit is contained in:
pany 2024-11-04 17:23:46 +08:00 committed by GitHub
parent 936dbf376b
commit 2ecc78b4d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,10 +11,11 @@
<div id="app">
<div id="app-loading"></div>
</div>
<script type="text/javascript">
// 检测是否为 IE 浏览器
if (/MSIE|Trident/.test(window.navigator.userAgent)) {
document.body.innerHTML = '<h1>抱歉,您的浏览器不支持此应用。请使用现代浏览器,例如 <a href="https://www.google.com/chrome/">Chrome</a><a href="https://www.mozilla.org/firefox/">Firefox</a><a href="https://www.microsoft.com/edge">Edge</a></h1>';
<script>
// Tip: Simple judgments may not fully cover
if (/MSIE\s|Trident\//.test(window.navigator.userAgent)) {
document.body.innerHTML =
"<strong>Sorry, this browser is currently not supported. We recommend using the latest version of a modern browser. For example, Chrome/Firefox/Edge.</strong>"
}
</script>
<script type="module" src="/src/main.ts"></script>