You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
341 B
7 lines
341 B
// 如果项目出现 `global is not defined` 报错,可能是您引入某个库的问题,比如 aws-sdk-js https://github.com/aws/aws-sdk-js
|
|
// 解决办法就是将该文件引入 src/main.ts 即可 import "@/utils/globalPolyfills";
|
|
if (typeof (window as any).global === "undefined") {
|
|
(window as any).global = window;
|
|
}
|
|
|
|
export {};
|