ソースを参照

修复打包文件使用错误环境变量导致页面白屏bug

zhouyuhao 7 ヶ月 前
コミット
ccbbd3ab41
1 ファイル変更1 行追加1 行削除
  1. 1 1
      vite.config.ts

+ 1 - 1
vite.config.ts

@@ -8,7 +8,7 @@ import Icons from 'unplugin-icons/vite'
 import IconsResolver from 'unplugin-icons/resolver'
 
 // https://vitejs.dev/config/
-export default defineConfig((mode) => {
+export default defineConfig(({ mode }) => {
   const env = loadEnv(mode, process.cwd())
   return {
     base: env.VITE_BASE_URL || '/',