refactor: show title Document Management
This commit is contained in:
parent
cca115ba14
commit
9445187838
1 changed files with 14 additions and 1 deletions
|
|
@ -1,12 +1,25 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from 'vue';
|
import { onMounted, ref, watch } from 'vue';
|
||||||
import { getInstance } from 'src/services/keycloak';
|
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 EDM_SERVICE = import.meta.env.VITE_EDM_MICRO_FRONTEND_URL;
|
||||||
const kc = getInstance();
|
const kc = getInstance();
|
||||||
const at = ref(kc.token);
|
const at = ref(kc.token);
|
||||||
const rt = ref(kc.refreshToken);
|
const rt = ref(kc.refreshToken);
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
utilsStore.currentTitle.title = 'Document Management';
|
||||||
|
utilsStore.currentTitle.path = [
|
||||||
|
{
|
||||||
|
text: '',
|
||||||
|
i18n: true,
|
||||||
|
handler: () => {},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => kc.token,
|
() => kc.token,
|
||||||
() => {
|
() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue