Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
520c9517
Commit
520c9517
authored
Apr 06, 2019
by
Junling Bu
Browse files
fix[litemall-admin]: 前端校验,同一规格的规格值不能相同
parent
dead5fb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/views/goods/create.vue
View file @
520c9517
...
...
@@ -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
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment