结构与界面
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
<link rel="icon" href="%PUBLIC_URL%/static/favicon/512.png">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
|
||||
<link rel="stylesheet" href="%PUBLIC_URL%/static/fonts_7/icomoon.css" />
|
||||
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<link rel="shortcut icon" href="%PUBLIC_URL%/static/favicon/512.png">
|
||||
<link rel="manifest" href="./static/manifest.json">
|
||||
@@ -26,6 +24,26 @@
|
||||
<title>新T树洞</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root">请开启javascript,或稍等片刻</div>
|
||||
<div id="root">
|
||||
请开启javascript,或 <a href="#" onClick="foce_reload">强制刷新</a>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
foce_reload() {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker
|
||||
.getRegistrations()
|
||||
.then((registrations) => {
|
||||
for (let registration of registrations) {
|
||||
console.log('unregister', registration);
|
||||
registration.unregister();
|
||||
}
|
||||
});
|
||||
}
|
||||
cache().clear();
|
||||
setTimeout(() => {
|
||||
window.location.reload(true);
|
||||
}, 200);
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user