princeLee il y a 4 ans
Parent
commit
4814ccfcdb
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      src/views/projectManage/bugList/details/index.vue

+ 2 - 4
src/views/projectManage/bugList/details/index.vue

@@ -955,8 +955,7 @@ export default {
       a.click()
     },
     getCommentList() {
-      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
-      getCommentList({ type: 2, joinId: bizId_id[1] }).then(res => {
+      getCommentList({ type: 2, joinId: this.bug.bizId }).then(res => {
         this.comments = res.data
         this.commentContent = ''
       })
@@ -966,8 +965,7 @@ export default {
         this.$message.warning('评论不能为空')
         return
       }
-      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
-      addComment({ commentInfo: { joinId: bizId_id[1], type: 2, content: this.commentContent }, user: { ename: this.userInformation }}).then(res => {
+      addComment({ commentInfo: { joinId: this.bug.bizId, type: 2, content: this.commentContent }, user: { ename: this.userInformation }}).then(res => {
         if (res.code === 200) {
           this.getCommentList()
         }