From 5053a0f8df753a5dfdd6c3253d2283de57f83cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Thu, 16 Feb 2023 22:40:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0count-modify=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/widgets/count-modify.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/widgets/count-modify.vue b/src/components/widgets/count-modify.vue index f93e52e..cb721bd 100644 --- a/src/components/widgets/count-modify.vue +++ b/src/components/widgets/count-modify.vue @@ -23,10 +23,6 @@ export default { type: Number, default: 0, }, - data: { - type: Object, - default: () => {}, - }, }, components: {}, created() { @@ -41,11 +37,11 @@ export default { } else { this.number = 0; } - this.$emit("onSub", this.data, this.number); + this.$emit("onSub", this.number); }, add() { this.number++; - this.$emit("onAdd", this.data, this.number); + this.$emit("onAdd", this.number); }, }, };