张延森 4 年前
父节点
当前提交
aaa700ea51
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/app.js

+ 1
- 1
src/app.js 查看文件

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