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,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('&')