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 {
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);
// });
});
}
/**