chore: window.process定义在index.html中,防止低版本浏览器报错

This commit is contained in:
xiaoxian521 2022-08-24 09:48:16 +08:00
parent a85a2f9022
commit 9a448143ae
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,9 @@
/>
<title>pure-admin-thin</title>
<link rel="icon" href="/favicon.ico" />
<script>
window.process = {};
</script>
</head>
<body>

View File

@ -70,8 +70,6 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
chunkSizeWarningLimit: 4000
},
define: {
"process.platform": null,
"process.version": null,
__INTLIFY_PROD_DEVTOOLS__: false,
__APP_INFO__: JSON.stringify(__APP_INFO__)
}