表单验证简化

This commit is contained in:
Gary Fu
2023-12-31 18:28:09 +08:00
parent a65a1db306
commit 7693635b45
6 changed files with 64 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ const menuItems = computed(() => {
})
const activeRoutePath = computed(() => {
const route = useRoute()
return route.path !== '/' ? route.path : ''
return route && route.path !== '/' ? route.path : ''
})
</script>