Update endpoints and URL bases configuration

This commit is contained in:
2023-10-26 09:06:07 -05:00
parent 754d779069
commit 4bc9cf4534
6 changed files with 14 additions and 11 deletions

View File

@@ -28,9 +28,12 @@ import { watchEffect, ref } from 'vue'
import Router from '@/router/index';
import { url_document_get } from '@/repositories/Document';
const dataURL = ref('')
const dataURL = ref<string>('')
watchEffect(()=>{
dataURL.value = url_document_get + Router.currentRoute.value.path
dataURL.value = new URL(
url_document_get + Router.currentRoute.value.path,
location.origin.replace( /^http/, 'ws')
).toString();
})
const emit = defineEmits({
visibleImg(value: boolean){