diff --git a/resources/assets/js/components/PMOMainPage.vue b/resources/assets/js/components/PMOMainPage.vue index 0be152d139c30b71093e9e9f1470e9600644019b..275cf0a4df6afa38ea1d2a67c1bda43df70cf9be 100644 --- a/resources/assets/js/components/PMOMainPage.vue +++ b/resources/assets/js/components/PMOMainPage.vue @@ -380,6 +380,20 @@ this.getKompetensi(); this.getKinerja(); this.getTraining(); + }, + mounted: function () { + let url = new URL(window.location.href); + console.log(window.location.href); + let tabParam = url.searchParams.get("tab"); + let nipParam = url.searchParams.get("nip"); + console.log(tabParam); + console.log(nipParam); + if (nipParam != null && tabParam != null) { + let payload = {}; + payload.name = tabParam; + payload.label = "Data Kompetensi"; + this.changeTable(payload); + } } } </script>