1.调整
This commit is contained in:
parent
319328c50b
commit
84c1fa825b
|
@ -440,6 +440,10 @@ export default {
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
if (this.form.lowBatteryReminderSwitch === undefined || this.form.lowBatteryReminderSwitch === null) {
|
||||||
|
this.form.lowBatteryReminderSwitch = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.form.modelId != null) {
|
if (this.form.modelId != null) {
|
||||||
updateModel(this.form).then(response => {
|
updateModel(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user