Authored by htoooth

fix

... ... @@ -2,7 +2,7 @@ import Vue from 'vue';
export default new Vue({
data() {
return {
tempIndex: 1
};
},
computed: {
... ... @@ -10,5 +10,9 @@ export default new Vue({
},
methods: {
genId() {
return Date.now() + this.tempIndex++;
}
}
});
\ No newline at end of file
... ...
... ... @@ -36,7 +36,8 @@ export default {
productListTitle: '',
listparams: { sort: 0}
}
}
},
id: this.$bus.genId()
})
},
onDeleteBtn(i, index) {
... ...
... ... @@ -15,8 +15,6 @@ import selectComp from './select-comp';
import sortTabEditor from './sortTab-editor'
import ResourceService from '@/service/resource-service';
let idStart = 1;
export default {
props: ['data', 'resContentDataId'],
data() {
... ... @@ -39,7 +37,7 @@ export default {
},
addId(m) {
m.forEach(i => {
i.id = Date.now() + idStart++;
i.id = this.$bus.genId();
})
return m;
... ...