diff --git a/src/pages/game.wpy b/src/pages/game.wpy index ec725fe..2ab5e38 100644 --- a/src/pages/game.wpy +++ b/src/pages/game.wpy @@ -45,9 +45,11 @@ this.link = `${this.link}&version=${env}&account_id=${encodeURIComponent(account.account_id)}&session_id=${encodeURIComponent(account.session_id)}`; console.log('load page: ' + this.link); this.name = decodeURIComponent(params.name); - wepy.setNavigationBarTitle({ - title: this.name - }); + if (this.name) { + wepy.setNavigationBarTitle({ + title: this.name + }); + } this.share_image = decodeURIComponent(params.share_image); this.$apply(); } diff --git a/src/pages/index.wpy b/src/pages/index.wpy index 149fe4d..4a3b10f 100644 --- a/src/pages/index.wpy +++ b/src/pages/index.wpy @@ -179,7 +179,7 @@ let gid = options.gid; let link = `${fcUrl}?id=${gid}&roomId=${roomId}`; wepy.navigateTo({ - url: '/pages/game?link=' + encodeURIComponent(link) + '&gid=' + gid + url: '/pages/game?link=' + encodeURIComponent(link) + '&gid=' + gid +'&name=multiplayer' }); } }