From 5a8bd581efd66ece107cce10a306e7e9c045cd38 Mon Sep 17 00:00:00 2001 From: lichong <18518571399@163.com> Date: Wed, 4 Dec 2024 18:56:14 +0800 Subject: [PATCH] 12.4 --- front/package.json | 2 +- front/src/renderer/src/views/shujufenxi.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/front/package.json b/front/package.json index ec947bc..112c789 100644 --- a/front/package.json +++ b/front/package.json @@ -1,6 +1,6 @@ { "name": "electron", - "version": "1.0.22", + "version": "1.0.23", "description": "An Electron application with Vue", "main": "./out/main/index.js", "author": "lichong", diff --git a/front/src/renderer/src/views/shujufenxi.vue b/front/src/renderer/src/views/shujufenxi.vue index c3ee7d4..188a925 100644 --- a/front/src/renderer/src/views/shujufenxi.vue +++ b/front/src/renderer/src/views/shujufenxi.vue @@ -1407,9 +1407,9 @@ export default { item["zhu"] = Number(element.jine) / 2 let zhonghaomaArr = `${zhonghaoma}`.split("") let xiangmuArr = `${element.value}`.split("") - zhonghaomaArr = _.uniq(zhonghaomaArr) - xiangmuArr = _.uniq(xiangmuArr) - if (_.difference(zhonghaomaArr, xiangmuArr).length === 0) { + xiangmuArr = xiangmuArr.sort() + zhonghaomaArr = zhonghaomaArr.sort() + if (xiangmuArr[0] === zhonghaomaArr[0] && xiangmuArr[1] === zhonghaomaArr[1] && xiangmuArr[2] === zhonghaomaArr[2]) { item["zhong"] = Number(element.jine) * Number(formData[element.type]) item["zhongzhu"] = 1 item["pei"] = Number(element.jine) * Number(formData[element.type])