fix(跳转app): 设置无id时无法跳转app页面
This commit is contained in:
parent
fc23fe08b6
commit
f765c263cd
@ -59,6 +59,7 @@ export function closePage() {
|
||||
* 前往私聊
|
||||
*/
|
||||
export function gotoPrivateChat(userId) {
|
||||
if (!userId) return
|
||||
try {
|
||||
console.log(`userId:${userId}`)
|
||||
if (window.app && window.app.gotoPrivateChat) {
|
||||
@ -78,6 +79,7 @@ export function gotoPrivateChat(userId) {
|
||||
* 查看个人页面
|
||||
*/
|
||||
export function viewUserInfo(userId) {
|
||||
if (!userId) return
|
||||
try {
|
||||
console.log(`userId:${userId}`)
|
||||
if (window.app && window.app.viewUserInfo) {
|
||||
@ -97,6 +99,7 @@ export function viewUserInfo(userId) {
|
||||
* 前往房间
|
||||
*/
|
||||
export function gotoRoom(roomId) {
|
||||
if (!roomId) return
|
||||
try {
|
||||
console.log(`roomId:${roomId}`)
|
||||
if (window.app && window.app.gotoRoom) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user