在index.html里
<script> var global = global || window; </script>
安装buffer
yarn add buffer
在main.ts里
import * as buffer from "buffer"; window.Buffer = window.Buffer || buffer.Buffer;
原创文章,作者:Carrie001128,如若转载,请注明出处:https://blog.ytso.com/278570.html