diff --git a/src/views/public/CommentGenerator.vue b/src/views/public/CommentGenerator.vue index a752fff..2a7ff56 100644 --- a/src/views/public/CommentGenerator.vue +++ b/src/views/public/CommentGenerator.vue @@ -403,7 +403,15 @@ export default { }, selectType(it) { if (!it) return + // 如果选择的是同一个型号,不重复提交 + if (this.form.productType === it.name) { + return + } this.form.productType = it.name + // 自动提交请求获取评论 + this.$nextTick(() => { + this.generate() + }) }, async generate() { // 检查按钮是否被禁用