张延森 4 vuotta sitten
vanhempi
commit
aaa700ea51
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      src/app.js

+ 1
- 1
src/app.js Näytä tiedosto

@@ -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) {