瀏覽代碼

修复打包文件使用错误环境变量导致页面白屏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 || '/',