Browse Source

深拷贝

wangziqian 4 years ago
parent
commit
f0a47ebc61
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/projectManage/bugList/details/bugTableDialog.vue

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

@@ -66,6 +66,7 @@
 </template>
 
 <script>
+const _ = require('lodash')
 import statusChange from '@/views/projectManage/bugList/details/statusChange'
 import { bugList, bugGetEnum } from '@/api/defectManage'
 import BugDetails from './index'
@@ -157,7 +158,7 @@ export default {
       return arr
     },
     bugGetTableList(e, index) {
-      this.queryData = e
+      this.queryData = _.cloneDeep(e)
       this.data = {}
       if (index) {
         this.currentPage = 1