"Uncaught ReferenceError: globalThis is not defined", source: http://127.0.0.1:5173/@vite/client (391)
经查发现,浏览器chrome内核版本为:69.0.3497.113
查询网址:浏览器内核版本检测--浏览迷
本人不想更换开发工具。主要想兼容win7.
可以在vue代码中的index.html页面加上
<script>
this.globalThis || (this.globalThis = this)
</script>
就可以了。vite版本如下: