张延森 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) {