up
This commit is contained in:
@@ -19,7 +19,7 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
function showAlert(type: string, text: string) {
|
function showAlert(type: string, text: string,timeout:number=5000) {
|
||||||
alertText.value = text;
|
alertText.value = text;
|
||||||
|
|
||||||
alertType.value = type;
|
alertType.value = type;
|
||||||
@@ -34,7 +34,7 @@ function showAlert(type: string, text: string) {
|
|||||||
autoCloseTimeout=setTimeout(() => {
|
autoCloseTimeout=setTimeout(() => {
|
||||||
//console.log("timeout");
|
//console.log("timeout");
|
||||||
ov.hide();
|
ov.hide();
|
||||||
}, 5000);
|
}, timeout);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
function c(){
|
function c(){
|
||||||
mos.value?.showAlert("success","111");
|
mos.value?.showAlert("success","111",1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user