princeLee 4 년 전
부모
커밋
87e8cfb0ea
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/views/projectManage/bugList/details/index.vue

+ 3 - 3
src/views/projectManage/bugList/details/index.vue

@@ -743,13 +743,13 @@ export default {
     const id = this.id === -1 ? this.bugId : this.id
     const id = this.id === -1 ? this.bugId : this.id
     this.bugGet(id, false).then(res => {
     this.bugGet(id, false).then(res => {
       this.changeWidthOnBlur()
       this.changeWidthOnBlur()
+      this.getCommentList()
       releaseList().then(res => {
       releaseList().then(res => {
         this.appClientList = res.data.appClient // 客户端
         this.appClientList = res.data.appClient // 客户端
         this.getVersionList(this.bug.appId)
         this.getVersionList(this.bug.appId)
       })
       })
       this.RichText()
       this.RichText()
     })
     })
-    this.getCommentList()
   },
   },
   methods: {
   methods: {
     analysisBizId_id() { // 解析路由中的bizId_id
     analysisBizId_id() { // 解析路由中的bizId_id
@@ -955,7 +955,7 @@ export default {
       a.click()
       a.click()
     },
     },
     getCommentList() {
     getCommentList() {
-      getCommentList({ type: 2, joinId: this.bug.bizId }).then(res => {
+      getCommentList({ type: 2, joinId: this.bug.id }).then(res => {
         this.comments = res.data
         this.comments = res.data
         this.commentContent = ''
         this.commentContent = ''
       })
       })
@@ -965,7 +965,7 @@ export default {
         this.$message.warning('评论不能为空')
         this.$message.warning('评论不能为空')
         return
         return
       }
       }
-      addComment({ commentInfo: { joinId: this.bug.bizId, type: 2, content: this.commentContent }, user: { ename: this.userInformation }}).then(res => {
+      addComment({ commentInfo: { joinId: this.bug.id, type: 2, content: this.commentContent }, user: { ename: this.userInformation }}).then(res => {
         if (res.code === 200) {
         if (res.code === 200) {
           this.getCommentList()
           this.getCommentList()
         }
         }