diff --git a/components/PostItem.vue b/components/PostItem.vue index 8a488fb..07b9e7f 100644 --- a/components/PostItem.vue +++ b/components/PostItem.vue @@ -7,8 +7,9 @@ {{ post.author?.nick }} @{{ post.author?.name }} {{ post.body?.title }} {{ post.body?.description }} - {{ post.author?.description - }} + + {{ post.author?.description }} + diff --git a/pages/embed/posts/[id].vue b/pages/embed/posts/[id].vue index 9ec48e0..dadd444 100644 --- a/pages/embed/posts/[id].vue +++ b/pages/embed/posts/[id].vue @@ -103,7 +103,7 @@ if (!post.value) { statusCode: 404, statusMessage: "Post Not Found", }) -} else if (post.value.alias) { +} else if (post.value.alias && !route.params.area) { navigateTo(`/posts/${post.value.area_alias}/${post.value.alias}`) } diff --git a/pages/posts/[id].vue b/pages/posts/[id].vue index e848fac..912196b 100644 --- a/pages/posts/[id].vue +++ b/pages/posts/[id].vue @@ -102,7 +102,7 @@ if (!post.value) { statusCode: 404, statusMessage: "Post Not Found", }) -} else if (post.value.alias) { +} else if (post.value.alias && !route.params.area) { navigateTo(`/posts/${post.value.area_alias}/${post.value.alias}`) }