From bbf01eeb584c28474e9001829ca89e47791caa38 Mon Sep 17 00:00:00 2001 From: danshihao Date: Fri, 3 Mar 2023 14:58:58 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20ESLint=E3=80=91src/components/?= =?UTF-8?q?=5Futil/Area.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/_util/Area.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jero-web/src/components/_util/Area.js b/jero-web/src/components/_util/Area.js index d6cc4499..c3f910a7 100644 --- a/jero-web/src/components/_util/Area.js +++ b/jero-web/src/components/_util/Area.js @@ -5,7 +5,7 @@ import Vue from 'vue' export default class Area { /** * 构造器 - * @param express + * @param pcaa */ constructor (pcaa) { if (!pcaa) { @@ -34,7 +34,7 @@ export default class Area { } getCode (text) { - if (!text || text.length == 0) { + if (!text || text.length === 0) { return '' } for (const item of this.all) { @@ -45,7 +45,7 @@ export default class Area { } getText (code) { - if (!code || code.length == 0) { + if (!code || code.length === 0) { return '' } const arr = [] @@ -61,9 +61,9 @@ export default class Area { getPcode (id, arr, index) { for (const item of this.all) { - if (item.id === id && item.index == index) { + if (item.id === id && item.index === index) { arr.unshift(id) - if (item.pid != '86') { + if (item.pid !== '86') { this.getPcode(item.pid, arr, --index) } } @@ -72,9 +72,9 @@ export default class Area { getAreaBycode (code, arr, index) { for (const item of this.all) { - if (item.id === code && item.index == index) { + if (item.id === code && item.index === index) { arr.unshift(item.text) - if (item.pid != '86') { + if (item.pid !== '86') { this.getAreaBycode(item.pid, arr, --index) } }