mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
remove duplicated code
This commit is contained in:
@@ -80,8 +80,6 @@ export default {
|
|||||||
if (isArray(this.items)) {
|
if (isArray(this.items)) {
|
||||||
count = this.items.length;
|
count = this.items.length;
|
||||||
} else {
|
} else {
|
||||||
let count = 0;
|
|
||||||
|
|
||||||
for (let field in this.items) {
|
for (let field in this.items) {
|
||||||
if (!Object.prototype.hasOwnProperty.call(this.items, field)) {
|
if (!Object.prototype.hasOwnProperty.call(this.items, field)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user