Skip to content

Instantly share code, notes, and snippets.

@spiritbroski
Created December 5, 2020 02:27
Show Gist options
  • Select an option

  • Save spiritbroski/372093163c05081d372dbf51e3016f2d to your computer and use it in GitHub Desktop.

Select an option

Save spiritbroski/372093163c05081d372dbf51e3016f2d to your computer and use it in GitHub Desktop.
<template>
<v-row justify="center" align="center" :class="['text-h1']">REDIRECTING...</v-row>
</template>
<script lang="ts">
import Cookies from 'js-cookie'
import { Component, Vue } from 'nuxt-property-decorator'
@Component
export default class MyStore extends Vue {
mounted(){
Cookies.set('token', this.$route.query.token)
window.location.href="/"
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment