Commit 199c9981 authored by 袁玲利's avatar 袁玲利

游戏排行榜优化

parent 9f80a420
......@@ -117,8 +117,12 @@ export default {
},
mounted() {
this.games.sort(() => 0.5 - Math.random());
this.params.userid = this.getQueryParams("userId");
this.params.sessionid = this.getQueryParams("sessionid");
if (this.getQueryParams("userId")) {
this.params.userid = this.getQueryParams("userId");
}
if (this.getQueryParams("sessionid")) {
this.params.sessionid = this.getQueryParams("sessionid");
}
this.params.behavior = "viewPage";
this.params.data = "gameOrder";
this.GameStatistics();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment