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,