张延森 před 4 roky
rodič
revize
aaa700ea51
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/app.js

+ 1
- 1
src/app.js Zobrazit soubor

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