chore: window.process
定义在index.html
中,防止低版本浏览器报错
This commit is contained in:
parent
a85a2f9022
commit
9a448143ae
@ -10,6 +10,9 @@
|
||||
/>
|
||||
<title>pure-admin-thin</title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<script>
|
||||
window.process = {};
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -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__)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user