liushengqiang преди 1 година
родител
ревизия
9539d2911c
променени са 3 файла, в които са добавени 14 реда и са изтрити 2 реда
  1. 0 0
      dist/assets/index-cd488fea.js
  2. 0 0
      dist/assets/index-legacy-0f7aa629.js
  3. 14 2
      dist/index.html

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/assets/index-cd488fea.js


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/assets/index-legacy-0f7aa629.js


+ 14 - 2
dist/index.html

@@ -8,11 +8,23 @@
   <meta http-equiv="Cache-control" content="no-cache">
   <meta http-equiv="Cache" content="no-cache">
   <title>制谱</title>
+  <script>
+    window.addEventListener('error', function (event) {
+      if (event.target.tagName === 'SCRIPT' && event.target.src.indexOf('assets/index') > -1) {
+        var  total = sessionStorage.getItem('SCRIPT_ERROR')
+        total = Number(total) || 0
+        total = total + 1
+        sessionStorage.setItem('SCRIPT_ERROR', total)
+        if (total > 3) return;
+        window.location.reload()
+      }
+    }, true)
+  </script>
   <script src="//at.alicdn.com/t/c/font_4186350_idu6dqxtfd.js"></script>
   <script src="./flexible.js"></script>
   <script src="./abc2svg/xml2abc.js"></script>
   <script src="./abc2svg/jquery-1.11.1.min.js"></script>
-  <script type="module" crossorigin src="./assets/index-3366eae6.js"></script>
+  <script type="module" crossorigin src="./assets/index-cd488fea.js"></script>
   <link rel="stylesheet" href="./assets/index-532dd713.css">
   <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};window.__vite_is_modern_browser=true;</script>
   <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
@@ -23,7 +35,7 @@
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
   <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-2011adef.js"></script>
-  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-e1342b3f.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-0f7aa629.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 
 </html>

Някои файлове не бяха показани, защото твърде много файлове са промени