张延森 hace 4 años
padre
commit
aaa700ea51
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/app.js

+ 1
- 1
src/app.js Ver fichero

@@ -11,7 +11,7 @@ const store = configStore()
11 11
 
12 12
 const App = (props)=> {
13 13
   const {user, getUser} = useUser(store)
14
-  const code = getCode()
14
+  const code =  process.env.NODE_ENV === 'production' ? getCode() : 'test'
15 15
 
16 16
   useEffect(() => {
17 17
     if (!user || !user.userId) {