修改global问题

This commit is contained in:
limengnan 2026-03-26 17:15:25 +08:00
parent 2800d02243
commit 0925cd3d52
2 changed files with 3 additions and 4 deletions

View File

@ -7,6 +7,9 @@
<meta name="description" content="NewFrameWork2023-WEB" />
<meta name="keywords" content="NewFrameWork2023-WEB" />
<title>临界事故情景分析模拟系统</title>
<script>
window.global = window;
</script>
</head>
<body>
<div id="app"></div>

View File

@ -17,10 +17,6 @@ export default ({ mode }: ConfigEnv): UserConfig => {
symbolId: 'icon-[dir]-[name]'
})
],
define: {
// 为所有模块注入 global 变量
global: 'window'
},
// 本地反向代理解决浏览器跨域限制
server: {
host: '0.0.0.0',