This commit is contained in:
Leo
2026-01-17 22:34:32 +08:00
parent 300293b68b
commit d8e71d9bf2

View File

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