diff --git a/xuan-deduct-uniapp/src/pages/bazi/result.vue b/xuan-deduct-uniapp/src/pages/bazi/result.vue index 35f2b64..4ea3a76 100644 --- a/xuan-deduct-uniapp/src/pages/bazi/result.vue +++ b/xuan-deduct-uniapp/src/pages/bazi/result.vue @@ -213,7 +213,6 @@ export default { const app = getApp() if (app.globalData && app.globalData.baziResult) { this.result = app.globalData.baziResult - this.saveRecord() } else { uni.showToast({ title: '未获取到排盘数据', @@ -245,28 +244,6 @@ export default { return this.result.baZiKongWang[index] } return '-' - }, - 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: sexNum, - inputDate: this.result.solar, - inputData: JSON.stringify({ - date: this.result.solar, - sex: this.result.sex - }), - resultData: JSON.stringify(this.result), - aiAnalysis: this.result.aiAnalysis - }) - } catch (e) { - console.log('保存记录失败:', e) - } } } }