Skip to content

Commit

Permalink
style: modify operator || to ??
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 committed Apr 28, 2022
1 parent 4a615cd commit 38c6fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/default/sidebar/components/MenuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const router = useRouter()
function handleClick(path: string) {
if (isUrl(path)) return window.open(path)
const routeMeta = props.menu.meta
const params = routeMeta?.routeParams || {}
const query = routeMeta?.routeQuery || {}
const params = routeMeta?.routeParams ?? {}
const query = routeMeta?.routeQuery ?? {}
props.currentDepth && (path = `${props.parentPath}/${path}`)
router.push({
path,
Expand Down

0 comments on commit 38c6fdc

Please sign in to comment.