Skip to content

Commit

Permalink
fix: process.cwd error
Browse files Browse the repository at this point in the history
在调用build/util/loadEnv()函数时会报process.cwd() is not a function

pure-admin#44
  • Loading branch information
hb0730 committed Sep 27, 2021
1 parent 5abb47d commit 8ea3d0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>后台管理系统</title>
<script src="/sortable.min.js"></script>
<script>
window.process = {};
<script type="module">
import process from "process";
window.process = process;
</script>
</head>

Expand Down

0 comments on commit 8ea3d0b

Please sign in to comment.