refactor: show title Document Management

This commit is contained in:
Net 2024-08-23 17:40:53 +07:00
parent cca115ba14
commit 9445187838

View file

@ -1,12 +1,25 @@
<script setup lang="ts">
import { ref, watch } from 'vue';
import { onMounted, ref, watch } from 'vue';
import { getInstance } from 'src/services/keycloak';
import useUtilsStore, { dialog, notify } from 'stores/utils';
const utilsStore = useUtilsStore();
const EDM_SERVICE = import.meta.env.VITE_EDM_MICRO_FRONTEND_URL;
const kc = getInstance();
const at = ref(kc.token);
const rt = ref(kc.refreshToken);
onMounted(() => {
utilsStore.currentTitle.title = 'Document Management';
utilsStore.currentTitle.path = [
{
text: '',
i18n: true,
handler: () => {},
},
];
});
watch(
() => kc.token,
() => {