Hangar/frontend/pages/linkout.vue

30 lines
748 B
Vue
Raw Normal View History

2021-01-22 01:19:00 +08:00
<template>
2021-02-11 20:37:06 +08:00
<v-col cols="12" md="6" offset-md="3">
<v-card>
<v-card-title v-text="$t('linkout.title')" />
<v-card-text v-text="$t('linkout.text', [target])" />
<v-card-actions>
<v-btn @click="goBack" v-text="$t('linkout.abort')" />
<v-btn :href="target" v-text="$t('linkout.continue')" />
</v-card-actions>
</v-card>
</v-col>
2021-01-22 01:19:00 +08:00
</template>
<script lang="ts">
import { Component, Vue } from 'nuxt-property-decorator';
@Component
2021-02-11 20:37:06 +08:00
export default class LinkoutPage extends Vue {
get target() {
return this.$route.query.remoteUrl;
}
goBack() {
window.history.back();
}
}
2021-01-22 01:19:00 +08:00
</script>
<style lang="scss" scoped></style>