This commit is contained in:
2025-11-03 00:25:30 +08:00
parent f8082d5557
commit ebdef45af4
2 changed files with 3 additions and 3 deletions
@@ -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);
} }
+1 -1
View File
@@ -9,7 +9,7 @@
}); });
function c(){ function c(){
mos.value?.showAlert("success","111"); mos.value?.showAlert("success","111",1000);
} }
</script> </script>