From f77640006e1bfd9586b72037ebc7b5e1addda909 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sun, 7 Apr 2019 21:31:01 +0800 Subject: [PATCH] ui build --- src/views/comment/CommentList.vue | 20 ++++++++++---------- src/views/post/PostList.vue | 17 ++++++++--------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src/views/comment/CommentList.vue b/src/views/comment/CommentList.vue index f6e5da79..c745e326 100644 --- a/src/views/comment/CommentList.vue +++ b/src/views/comment/CommentList.vue @@ -42,17 +42,10 @@
- {{ text }} - Name - - {{ tag }} - - Invite 一 {{ record.name }} - - Delete + 编辑 - More actions + 删除
@@ -106,6 +99,13 @@ export default { } }, created() {}, - methods: {} + methods: { + editComment(id) { + this.$message.success('编辑') + }, + deleteComment(id) { + this.$message.success('删除') + } + } } diff --git a/src/views/post/PostList.vue b/src/views/post/PostList.vue index 64865a45..c604ce19 100644 --- a/src/views/post/PostList.vue +++ b/src/views/post/PostList.vue @@ -53,17 +53,10 @@
- {{ text }} - Name - - {{ tag }} - - Invite 一 {{ record.name }} - - Delete + 编辑 - More actions + 删除
@@ -135,6 +128,12 @@ export default { categoryApi.listAll().then(response => { this.categories = response.data.data }) + }, + editPost(id) { + this.$message.success('编辑') + }, + deletePost(id) { + this.$message.success('删除') } } }