소스 검색

fix to h5 bug

张延森 5 년 전
부모
커밋
dcc86e1213
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      src/pages/project/h5Page.js

+ 2
- 1
src/pages/project/h5Page.js 파일 보기

@@ -291,9 +291,10 @@ export default class Index extends Component {
291 291
     const { pageInfo, webViewVisible, codeParams } = this.state
292 292
     const { userInfo: { person } } = this.props
293 293
     const consultant = person.personType == ROLE_CODE['CONSULTANT'] ? person.userId : ""
294
+    const h5id = this.$router.params.id || router.query.id || ""
294 295
     const webUrlParams = [
295 296
       `personId=${person.personId}`,
296
-      `h5id=${this.$router.params.id}`,
297
+      `h5id=${h5id}`,
297 298
       `consultant=${consultant}`,
298 299
       `codeParams=${encodeURIComponent(codeParams)}`,
299 300
     ].join('&')