From d95eb4355cf1a265885ca642f6b53d229d0084b3 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 11 七月 2024 15:05:41 +0800 Subject: [PATCH] 修改中文判断逻辑 --- static/js/worker.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/worker.js b/static/js/worker.js index 5d77047..3964170 100644 --- a/static/js/worker.js +++ b/static/js/worker.js @@ -96,7 +96,8 @@ if(res.includes('/')){ return handleMoreParam(res,m.split('=')[1],'=') }else{ - return res.trim() == str.trim() + console.log(res.trim().replace(/[.,銆傘�侊紱锛�'";?锛熲�滐紝]/g, ''),' == ',str.trim().replace(/[.,銆傘�侊紱锛�'";?锛熲�滐紝]/g, '')) + return res.trim().replace(/[.,銆傘�侊紱锛�'";?锛熲�滐紝]/g, '') == str.trim().replace(/[.,銆傘�侊紱锛�'";?锛熲�滐紝]/g, '') } }else{ return eval(res) == eval(str) @@ -180,7 +181,6 @@ } }) } else { - console.log(333333) item.v.v = 0 list.forEach(a => { if (a[0].r == item.r) { @@ -193,6 +193,7 @@ } }) } + console.log(tableList) } result = { method:'saveInsContext', -- Gitblit v1.9.3