Browse Source

环境变量名写错了

jwyu 2 years ago
parent
commit
78d2ca130d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/hzyb/utils/reportErr.js

+ 2 - 2
src/views/hzyb/utils/reportErr.js

@@ -10,7 +10,7 @@ const reportErr=(app)=>{
             msg:err.message,
             stack:err.stack
         }
-        if(import.meta.env.MODE==='production'){
+        if(import.meta.env.MODE==='product'){
             apiReportingErrInfo({errInfo:errObj})
         }
     }
@@ -21,7 +21,7 @@ const reportErr=(app)=>{
             msg:e.error?.message,
             stack:e.error?.stack
         }
-        if(import.meta.env.MODE==='production'){
+        if(import.meta.env.MODE==='product'){
             apiReportingErrInfo({errInfo:errObj})
         }
     })