Fixed bug

This commit is contained in:
2023-06-23 09:54:00 +02:00
parent 395ca6817d
commit 186773243c

View File

@@ -15,6 +15,7 @@ const visible = ref('hidden');
const fetchLink = window.location.protocol + "//" + window.location.hostname + "/mock/api/mock"
function prepareAndSendData(){
console.log(JSON.stringify(props.messageData))
if (props.messageData != null|| props.messageData != undefined ){
fetch(fetchLink, { method: "put", body:JSON.stringify(props.messageData), headers: { "Content-Type" : "application/json" }})
.then( response => response.text() )