Pls how to I know if a page is opened

Gud Morin pls how can I check is route or page is opened

Pls help me am stuck

in mounted property, you can set a state, or you can put a console.log.