张延森 4 years ago
parent
commit
aaa700ea51
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/app.js

+ 1
- 1
src/app.js View File

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