From c70bbb425511d48dd90bcfb437c6c0219563a115 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Tue, 19 Mar 2024 10:45:22 +0800 Subject: [PATCH] bug --- pages/manage/out-storage-confirm.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pages/manage/out-storage-confirm.vue b/pages/manage/out-storage-confirm.vue index 2037d6b..b8a5ae2 100644 --- a/pages/manage/out-storage-confirm.vue +++ b/pages/manage/out-storage-confirm.vue @@ -97,6 +97,7 @@ val1: '', val2: '', val3: '', + val4: '', val5: '', data: {}, title: '', @@ -104,13 +105,16 @@ disabled2: false }; }, - computed: { - val4 () { - let res = '' + watch: { + val3 () { if (this.val5 !== '') { - res = accSubtract(this.val5, this.val3) + this.val4 = accSubtract(this.val5, this.val3) + } + }, + val4 () { + if (this.val5 !== '') { + this.val3 = accSubtract(this.val5, this.val4) } - return res } }, onLoad (options) {