From 266195ec264af4ff5dde7dbdb8830aeb52806aa4 Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Wed, 6 Nov 2024 16:38:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E5=90=8E=E5=8F=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/uploadInvoice.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/index/uploadInvoice.vue b/src/views/index/uploadInvoice.vue index cb9a3052..04ae95b2 100644 --- a/src/views/index/uploadInvoice.vue +++ b/src/views/index/uploadInvoice.vue @@ -370,8 +370,8 @@ } //如果前面部分都对得上,但是长度不同,则差异是长度 - if(difference == 0 && str1.length != str2.length){ - difference = Math.abs(str1.length - str2.length) + if(str1.length != str2.length){ + difference += Math.abs(str1.length - str2.length) } // 同样遍历字符串2,处理字符串1中不存在的字符 /*for (let i = 0; i < str2.length; i++) {