fix:bbug
This commit is contained in:
10
index.html
10
index.html
@@ -4,12 +4,8 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
<title>全景查看</title>
|
||||
<script>window.__CACHE_VERSION__='__CACHE_VERSION__';</script>
|
||||
<link rel="stylesheet" href="lib/pannellum.css?v=__CACHE_VERSION__">
|
||||
<link rel="stylesheet" href="lib/pannellum.css">
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
|
||||
.pano-root { flex: 1 1 0%; position: relative; width: 100%; height: 100%; }
|
||||
@@ -211,7 +207,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="lib/pannellum.js?v=__CACHE_VERSION__"></script>
|
||||
<script src="lib/pannellum.js"></script>
|
||||
<script>
|
||||
(function() {
|
||||
var API = '/api';
|
||||
@@ -483,7 +479,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
fetch('api.config.json?v=' + (window.__CACHE_VERSION__ || ''))
|
||||
fetch('api.config.json')
|
||||
.then(function(r) {
|
||||
if (!r.ok) return Promise.resolve({ apiBase: '' });
|
||||
return typeof r.json === 'function' ? r.json().catch(function() { return { apiBase: '' }; }) : Promise.resolve({ apiBase: '' });
|
||||
|
||||
Reference in New Issue
Block a user