Skip to content

Commit

Permalink
fix page back issue
Browse files Browse the repository at this point in the history
  • Loading branch information
songjiazhun authored and stiartsly committed Mar 28, 2022
1 parent 8dcdd8c commit c4ee7b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ export class MyApp {
}

//分享菜单了 app-sharemenu

let sharemenu:HTMLElement = document.querySelector("app-sharemenu")|| null;
let sharemenu:HTMLElement = document.querySelector("app-sharemenu") || null;
if(sharemenu != null){
let sharemenuMask:HTMLElement = document.getElementById("sharemenuMask") || null;
if(sharemenuMask!= null){
sharemenuMask.click();
sharemenu.remove();
}
return;
}
Expand Down
6 changes: 5 additions & 1 deletion src/app/pages/feeds/profile/profile.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,6 @@ export class ProfilePage implements OnInit {
this.intentService.share(title, sharedLink);
} catch (error) {
}

this.native.hideLoading();
return;
}
Expand Down Expand Up @@ -1893,6 +1892,10 @@ export class ProfilePage implements OnInit {
this.hideSharMenuComponent = false;
break;
}
let sharemenu:HTMLElement = document.querySelector("app-sharemenu") || null;
if(sharemenu != null){
sharemenu.remove();
}
}

getQrCodeString(feed: any) {
Expand Down Expand Up @@ -1950,6 +1953,7 @@ export class ProfilePage implements OnInit {
followStatus: followStatus,
channelSubscribes: feedSubscribes,
});

this.native.navigateForward(['/feedinfo'], '');
}

Expand Down

0 comments on commit c4ee7b7

Please sign in to comment.