Commit 520c9517 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-admin]: 前端校验,同一规格的规格值不能相同

parent dead5fb2
......@@ -499,7 +499,17 @@ export default {
for (var i = 0; i < this.specifications.length; i++) {
const v = this.specifications[i]
if (v.specification === this.specForm.specification) {
index = i
if (v.value === this.specForm.value) {
this.$message({
type: 'warning',
message: '已经存在规格值:' + v.value
})
this.specForm = {}
this.specVisiable = false
return
} else {
index = i
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment