calendar
Gitea Actions Demo / Deploy (push) Successful in 34s

This commit is contained in:
vadim committed 2026-10-12 11:47:42 +03:00
1 parent c0e815ae63
commit 0fe2c70848
5 files changed
+465 -44

No files matched your search

+4 -1
View File
@@ -10,7 +10,10 @@ const backTo = computed(() => {
})
function goBack() {
if (backTo.value) router.push({ name: backTo.value })
// vue-router keeps the previous in-app location in history.state.back;
// it's null when the page was opened directly, so fall back to backTo
if (window.history.state?.back) router.back()
else if (backTo.value) router.push({ name: backTo.value })
}
</script>