Lint fixes
parent
38ed215624
commit
e37b4ec1bf
|
@ -338,7 +338,7 @@ export default {
|
||||||
},
|
},
|
||||||
findIndexById(id) {
|
findIndexById(id) {
|
||||||
let index = -1;
|
let index = -1;
|
||||||
for (let i = 0; i < this.products.length; i++) {
|
for (let i = 0; i < this.products.length; i++) {
|
||||||
if (this.products[i].id === id) {
|
if (this.products[i].id === id) {
|
||||||
index = i;
|
index = i;
|
||||||
break;
|
break;
|
||||||
|
@ -350,7 +350,7 @@ export default {
|
||||||
createId() {
|
createId() {
|
||||||
let id = '';
|
let id = '';
|
||||||
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||||
for ( var i = 0; i < 5; i++ ) {
|
for ( var i = 0; i < 5; i++ ) {
|
||||||
id += chars.charAt(Math.floor(Math.random() * chars.length));
|
id += chars.charAt(Math.floor(Math.random() * chars.length));
|
||||||
}
|
}
|
||||||
return id;
|
return id;
|
||||||
|
|
Loading…
Reference in New Issue