π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Improve syntax
Smaug673956696b76f1fa
diff --git a/frontend/pages/login.vue b/frontend/pages/login.vueindex e6dbefec..ea3ff4d7 100644--- a/frontend/pages/login.vue+++ b/frontend/pages/login.vue@@ -22,7 +22,6 @@</div></template><script setup lang="ts">-const router = useRouter();const username = ref('');const errors = ref({username: '',@@ -47,7 +46,7 @@ function login() {async function connect(username: string, password: string) {const result = await userStore.login(username, password);- if (result == true) router.push('/dashboard');+ if (result == true) useRouter().push('/dashboard');else errors.value.general = String(result);}</script>