ui: auto-prefill edit tariff label (#5714)

This commit is contained in:
Hoang Nguyen 2021-12-30 17:57:56 +07:00 committed by GitHub
parent d7a9873053
commit 10bda8549b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -475,6 +475,7 @@ export default {
Object.keys(fields).forEach(key => {
this.form.getFieldDecorator([key], { initialValue: fields[key] })
this.form.setFieldsValue({ [key]: fields[key] })
})
},
deleteTraffic (key, traffic, $event) {