From 35ad04eca3a73007ea18780174b24bec1b5b59e8 Mon Sep 17 00:00:00 2001 From: xuan-bot Date: Sun, 8 Mar 2026 00:42:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AFsex?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E7=A1=AE=E4=BF=9D=E5=89=8D=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xuan-deduct-uniapp/src/pages/bazi/result.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xuan-deduct-uniapp/src/pages/bazi/result.vue b/xuan-deduct-uniapp/src/pages/bazi/result.vue index 5afbcf2..35f2b64 100644 --- a/xuan-deduct-uniapp/src/pages/bazi/result.vue +++ b/xuan-deduct-uniapp/src/pages/bazi/result.vue @@ -248,10 +248,14 @@ export default { }, async saveRecord() { try { + let sexNum = 1 + if (this.result.sex === '女' || this.result.sex === 0 || this.result.sex === '0') { + sexNum = 0 + } await api.recordApi.save({ type: 'bazi', name: this.result.name || '某人', - sex: this.result.sex, + sex: sexNum, inputDate: this.result.solar, inputData: JSON.stringify({ date: this.result.solar,