浏览代码

深拷贝

wangziqian 4 年之前
父节点
当前提交
23deb5daf4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/projectManage/bugList/details/bugTableDialog.vue

+ 2 - 2
src/views/projectManage/bugList/details/bugTableDialog.vue

@@ -158,13 +158,13 @@ export default {
       return arr
     },
     bugGetTableList(e, index) {
-      this.queryData = _.cloneDeep(e)
+      this.queryData = e
       this.data = {}
       if (index) {
         this.currentPage = 1
         this.curIndex = 1
       }
-      this.data = this.queryData
+      this.data = _.cloneDeep(this.queryData)
       this.data.bizId = this.bizId
       this.data.pageSize = this.pageSize
       this.data.curIndex = this.curIndex