mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 00:06:15 -04:00
26 lines
501 B
Vue
26 lines
501 B
Vue
<template>
|
|
<n-space>
|
|
{{ value.value }}
|
|
<i v-if="value.extension">({{ value.extension }})</i>
|
|
</n-space>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { parse_claim_value } from './jwt-parser.service';
|
|
|
|
const props = defineProps({
|
|
claim: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
value: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
});
|
|
|
|
const value = computed(() => parse_claim_value(props.claim, props.value));
|
|
</script>
|
|
|
|
<style lang="less" scoped></style>
|