feat: add edm service

This commit is contained in:
Methapon2001 2024-08-13 17:15:55 +07:00
parent a1b12fbb46
commit 2ff18e7785
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,26 @@
<script setup lang="ts">
import { ref, watch } from 'vue';
import { getInstance } from 'src/services/keycloak';
const kc = getInstance();
const at = ref(kc.token);
const rt = ref(kc.refreshToken);
watch(
() => kc.token,
() => {
at.value = kc.token;
rt.value = kc.refreshToken;
},
);
</script>
<template>
<iframe
:src="`http://localhost:9001/?at=${at}&rt=${rt}`"
frameborder="0"
class="full-width full-height rounded bordered"
></iframe>
</template>
<style scoped></style>