优化
This commit is contained in:
parent
b6261a2873
commit
50fcc04e0c
@ -368,7 +368,12 @@ export default {
|
||||
}
|
||||
this.$refs.form.validate((v) => {
|
||||
if (v) {
|
||||
this.form.weight = this.form.weight / 100 > 1 ? 1 : this.form.weight / 100
|
||||
if (this.form.weight) {
|
||||
this.form.weight = this.form.weight / 100 > 1 ? 1 : this.form.weight / 100
|
||||
}
|
||||
if (!this.weight) {
|
||||
this.form.weight = ''
|
||||
}
|
||||
if (this.form.isEdit) {
|
||||
this.info.modelItems[this.form.index] = Object.assign({}, this.form)
|
||||
this.form = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user