bug fixed
This commit is contained in:
parent
6e612381af
commit
ad7e2f6eca
|
@ -18,19 +18,18 @@ export class GameMainComponent implements OnInit {
|
|||
|
||||
ngOnInit(): void {
|
||||
this.__activatedRoute.queryParams.subscribe((params) => {
|
||||
console.log(params); // { orderby: "price" }
|
||||
const vendorKey = params['vendor_key'];
|
||||
const gameKey = params['game_key'];
|
||||
|
||||
let r = this.__gameService
|
||||
.getGameUrl(vendorKey, gameKey)
|
||||
.then((r) => {
|
||||
console.log('success', r.getUrl());
|
||||
window.location.href = r.getUrl();
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log('fail', e);
|
||||
});
|
||||
// console.log(params); // { orderby: "price" }
|
||||
// const vendorKey = params['vendor_key'];
|
||||
// const gameKey = params['game_key'];
|
||||
// let r = this.__gameService
|
||||
// .getGameUrl(vendorKey, gameKey)
|
||||
// .then((r) => {
|
||||
// console.log('success', r.getUrl());
|
||||
// window.location.href = r.getUrl();
|
||||
// })
|
||||
// .catch((e) => {
|
||||
// console.log('fail', e);
|
||||
// });
|
||||
});
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user