princeLee vor 4 Jahren
Ursprung
Commit
87e8cfb0ea
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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
     this.bugGet(id, false).then(res => {
       this.changeWidthOnBlur()
+      this.getCommentList()
       releaseList().then(res => {
         this.appClientList = res.data.appClient // 客户端
         this.getVersionList(this.bug.appId)
       })
       this.RichText()
     })
-    this.getCommentList()
   },
   methods: {
     analysisBizId_id() { // 解析路由中的bizId_id
@@ -955,7 +955,7 @@ export default {
       a.click()
     },
     getCommentList() {
-      getCommentList({ type: 2, joinId: this.bug.bizId }).then(res => {
+      getCommentList({ type: 2, joinId: this.bug.id }).then(res => {
         this.comments = res.data
         this.commentContent = ''
       })
@@ -965,7 +965,7 @@ export default {
         this.$message.warning('评论不能为空')
         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) {
           this.getCommentList()
         }