14 lines
294 B
Plaintext
14 lines
294 B
Plaintext
|
<ga-redirect>
|
||
|
<style>
|
||
|
:host { display: none; }
|
||
|
</style>
|
||
|
<script>
|
||
|
import { router } from '@riotjs/route';
|
||
|
export default {
|
||
|
onMounted() {
|
||
|
console.log(`redirect to ${this.props.path}`);
|
||
|
router.push(this.props.path);
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
</ga-redirect>
|