wuhongyu 5 years ago
parent
commit
9c0e368642
1 changed files with 21 additions and 21 deletions
  1. 21 21
      src/views/communication/parts/topicDetail.vue

+ 21 - 21
src/views/communication/parts/topicDetail.vue

@@ -109,7 +109,7 @@ export default {
     limit: 4,
   }),
   created() {
-    // this.search();
+    this.search();
     // this.searchinfo();
   },
   computed: {
@@ -133,26 +133,26 @@ export default {
     //   const res = await this.fetch(id);
     //   this.$set(this, `detail`, res.data);
     // },
-    // async search({ skip = 0, limit = this.limit, newsid = this.newsid } = { skip: 0, limit: this.limit }) {
-    //   let res = await this.commentquery({ skip, limit, newsid });
-    //   console.log(res);
-    //   this.$set(this, `list`, res.data);
-    //   this.$set(this, `total`, res.total);
-    // },
-    // async submit() {
-    //   if (!this.user.uid) {
-    //     this.$message.error('游客身份无法评论,请先登录');
-    //     return;
-    //   } else {
-    //     this.form.newsid = this.newsid;
-    //     this.form.uid = this.user.uid;
-    //     let data = this.form;
-    //     let res = await this.commentCreate(data);
-    //     console.log(res);
-    //     this.$checkRes(res, '评论成功', '评论失败');
-    //     this.search();
-    //   }
-    // },
+    async search({ skip = 0, limit = this.limit, newsid = this.newsid } = { skip: 0, limit: this.limit }) {
+      //   let res = await this.commentquery({ skip, limit, newsid });
+      //   console.log(res);
+      //   this.$set(this, `list`, res.data);
+      //   this.$set(this, `total`, res.total);
+    },
+    async submit() {
+      //   if (!this.user.uid) {
+      //     this.$message.error('游客身份无法评论,请先登录');
+      //     return;
+      //   } else {
+      //     this.form.newsid = this.newsid;
+      //     this.form.uid = this.user.uid;
+      //     let data = this.form;
+      //     let res = await this.commentCreate(data);
+      //     console.log(res);
+      //     this.$checkRes(res, '评论成功', '评论失败');
+      //     this.search();
+      //   }
+    },
   },
   filters: {
     getDate(meta) {