mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2026-02-23 06:37:01 +00:00
表单验证简化
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user