Browse Source

fix to h5 bug

张延森 5 years ago
parent
commit
dcc86e1213
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/pages/project/h5Page.js

+ 2
- 1
src/pages/project/h5Page.js View File

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