瀏覽代碼

fix: 确保app.config.js优先加载

louhangfei 1 年之前
父節點
當前提交
f5f3381602
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      index.html

+ 1 - 7
index.html

@@ -8,13 +8,7 @@
   <meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
     name="viewport" />
   <link href="/favicon.ico" rel="icon" />
-
-  <script>
-    const script = document.createElement("script");
-    script.src = "./app.config.js?v=" + Date.now()
-    document.head.append(script)
-
-  </script>
+  <script src="./app.config.js?hash=<%= hash %>"></script>
   <title>
     <%= title %>
   </title>