improve ux

This commit is contained in:
Egor Aristov 2025-02-22 21:41:47 +03:00
parent 68f3632853
commit 21b5774e9e
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F

View File

@ -26,12 +26,14 @@ watch(existingLink, async (value) => {
}); });
watch(store.specs, debounce(() => { watch(store.specs, debounce(() => {
if(store.formValid) { if (store.formValid) {
generateLink(); generateLink();
} else { } else {
link.value = ""; link.value = "";
} }
}, 100)); }, 100),
{immediate: true}
);
async function generateLink() { async function generateLink() {
try { try {