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