Browse Source

修复错误BUG

caner 1 year ago
parent
commit
890456e84e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vite.config.ts

+ 2 - 2
vite.config.ts

@@ -35,7 +35,7 @@ const getImgSize =  ()=> {
     }
     }
     return obj
     return obj
   } catch (error) {
   } catch (error) {
-    return {}
+    return {W:0,H:0,S:0,M:0}
   }
   }
 }
 }
 // https://vitejs.dev/config/
 // https://vitejs.dev/config/
@@ -59,7 +59,7 @@ export default defineConfig({
     https: false
     https: false
   },
   },
   esbuild: {
   esbuild: {
-    drop: ['console', 'debugger'] //build 移除打印
+    drop: ['debugger'] //build 移除打印
   },
   },
   build: {
   build: {
     rollupOptions: {
     rollupOptions: {