Skip to content

Commit

Permalink
remove other params
Browse files Browse the repository at this point in the history
  • Loading branch information
qu-y committed Dec 17, 2024
1 parent 81f182e commit 1b5f4e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/Papers/Research/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ new Vue({
pageID() {
if (keyParams.pageid) return keyParams.pageid;
if (window.location.pathname.includes("/r/")) {
return window.location.pathname.split("/")[2];
return window.location.pathname.split("/")[2].split("&")[0];
}
return new URLSearchParams(window.location.search).get("pageid");
},
Expand Down Expand Up @@ -1284,6 +1284,7 @@ new Vue({
this.$store.dispatch("bioPortal/getDiseaseGroups");
this.$store.dispatch("bioPortal/getPhenotypes");
this.$store.dispatch("bioPortal/getDiseaseSystems");
console.log("this.pageID", this.pageID);
if (this.pageID) {
this.$store.dispatch("hugeampkpncms/getResearchMode", {
pageID: this.pageID,
Expand Down

0 comments on commit 1b5f4e4

Please sign in to comment.