{{item.commentContent}}
-
@@ -52,7 +73,7 @@
type="textarea"
placeholder="请友善交流,文明用语"
/>
-
-
+
+ {{ i.userUsername }} {{i.commentContent}}
-
+
+
+
+
+
匿名
+
+
diff --git a/src/views/Blog.vue b/src/views/Blog.vue
index 5055f8c..6cc054c 100644
--- a/src/views/Blog.vue
+++ b/src/views/Blog.vue
@@ -35,7 +35,7 @@
- 分享本页面
@@ -90,8 +90,6 @@ let blog=ref({
isTop:1
})
-let blogId:string='-1'
-
const getBlog=()=>{
if(blog.value.blogId!==undefined)
{
@@ -158,10 +156,6 @@ const getFriendLinkList=function () {
}
onMounted(()=>{
- if(route.query.id!=null)
- {
- blogId=route.query.id.toString()
- }
getBlog()
getFriendLinkList()
})
diff --git a/src/views/EditBlog.vue b/src/views/EditBlog.vue
index cedb76f..63b8a96 100644
--- a/src/views/EditBlog.vue
+++ b/src/views/EditBlog.vue
@@ -197,7 +197,7 @@ const onSubmit= async (formEl: FormInstance | undefined) => {
else
{
ElMessage.success('发布成功');
- router.push('/blog?id='+blog.value.blogId)
+ router.push('/')
}
})
}