Fixed message restting after page refresh (#234)

Co-authored-by: widlam <mikolaj.widla@gmail.com>
Reviewed-on: #234
Reviewed-by: Adam Bem <bema@noreply.example.com>
Co-authored-by: Mikolaj Widla <widlam@noreply.example.com>
Co-committed-by: Mikolaj Widla <widlam@noreply.example.com>
This commit is contained in:
2023-06-26 10:26:17 +02:00
committed by Adam Bem
parent 395ca6817d
commit 201db42fc5
7 changed files with 54 additions and 75 deletions

View File

@@ -12,7 +12,7 @@ const props = defineProps(
const message = ref('');
const visible = ref('hidden');
const fetchLink = window.location.protocol + "//" + window.location.hostname + "/mock/api/mock"
const fetchLink = window.location.protocol + "//" + window.location.hostname + "/mock/api/mock";
function prepareAndSendData(){
if (props.messageData != null|| props.messageData != undefined ){
@@ -27,7 +27,7 @@ function prepareAndSendData(){
function showToast(){
visible.value = "visible";
setTimeout( () => { visible.value = "opacity-0" } , 1500 )
setTimeout( () => { visible.value = "opacity-0" } , 1000 )
}
function hideToast(){