张恒

修改路径问题,可能导致非win平台出现问题

正在显示 1 个修改的文件 包含 1 行增加 和 1 行删除
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 <% if (!process.browser) { %> 16 <% if (!process.browser) { %>
17 <script> 17 <script>
18 if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\') 18 if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
19 - if (process.env.NODE_ENV !== 'development') window.__lib = require('path').join(__dirname, `../../../../${require('../config/index.js').DllFolder}`).replace(/\\/g, '\\\\') 19 + if (process.env.NODE_ENV !== 'development') window.__lib = require('path').join(__dirname,'..','..','..','..',`${require('../config/index.js').DllFolder}`).replace(/\\/g, '\\\\')
20 </script> 20 </script>
21 <% } %> 21 <% } %>
22 22
......