bug fixed

This commit is contained in:
병준 박 2022-08-30 09:49:13 +00:00
parent 6e612381af
commit ad7e2f6eca

View File

@ -18,19 +18,18 @@ export class GameMainComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
this.__activatedRoute.queryParams.subscribe((params) => { this.__activatedRoute.queryParams.subscribe((params) => {
console.log(params); // { orderby: "price" } // console.log(params); // { orderby: "price" }
const vendorKey = params['vendor_key']; // const vendorKey = params['vendor_key'];
const gameKey = params['game_key']; // const gameKey = params['game_key'];
// let r = this.__gameService
let r = this.__gameService // .getGameUrl(vendorKey, gameKey)
.getGameUrl(vendorKey, gameKey) // .then((r) => {
.then((r) => { // console.log('success', r.getUrl());
console.log('success', r.getUrl()); // window.location.href = r.getUrl();
window.location.href = r.getUrl(); // })
}) // .catch((e) => {
.catch((e) => { // console.log('fail', e);
console.log('fail', e); // });
});
}); });
} }
/** /**