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

This commit is contained in:
xiaoxian521 2022-08-24 09:46:19 +08:00
parent 769410efdf
commit cef79dfca0
2 changed files with 3 additions and 2 deletions

View File

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

View File

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