新增数据每次保存数量改成2000

dev
yujialong 3 years ago
parent f781780a5b
commit a3d55fa495
  1. 4
      src/views/data/Framework.vue

@ -581,8 +581,8 @@ export default {
this.getNames(typeIds).then(() => { this.getNames(typeIds).then(() => {
const data = this.names const data = this.names
const dataList = [] const dataList = []
for (let i = 0, len = data.length; i < len; i += 3000) { for (let i = 0, len = data.length; i < len; i += 2000) {
dataList.push(data.slice(i, i + 3000)) dataList.push(data.slice(i, i + 2000))
} }
const promiseList = [] const promiseList = []
dataList.map(e => { dataList.map(e => {

Loading…
Cancel
Save