Change to const
This commit is contained in:
@@ -115,12 +115,12 @@ const Items = {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
addItem: function () {
|
addItem: function () {
|
||||||
var value = this.newItem && this.newItem.trim()
|
const value = this.newItem && this.newItem.trim();
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var components = value.split(' ')
|
const components = value.split(' ');
|
||||||
|
|
||||||
api.createNew(components[0],
|
api.createNew(components[0],
|
||||||
parseInt(components[1].replace(/[^\d.]/g, '')),
|
parseInt(components[1].replace(/[^\d.]/g, '')),
|
||||||
|
|||||||
Reference in New Issue
Block a user