From 1ed598c5f2ae70360657ad3fa2b1007d295e552f Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 23 Aug 2022 09:55:23 +0800 Subject: [PATCH] fix: process is not defined in path --- index.html | 3 --- vite.config.ts | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c9e6cb00d..5eb1ccd46 100644 --- a/index.html +++ b/index.html @@ -10,9 +10,6 @@ /> vue-pure-admin - diff --git a/vite.config.ts b/vite.config.ts index 5244c03ae..538134de5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -70,6 +70,8 @@ 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__) }