[Update] 修改通过创建更新页面

This commit is contained in:
ibuler
2020-04-27 13:59:26 +08:00
parent 153129fc91
commit d8ba9d2bde

View File

@@ -120,7 +120,7 @@ export default {
async mounted() {
this.loading = true
try {
this.form = await this.getFormValues()
this.form = await this.getFormValue()
} finally {
this.loading = false
}
@@ -156,7 +156,7 @@ export default {
}
})
},
async getFormValues() {
async getFormValue() {
if (this.method !== 'put') {
return Object.assign(this.form, this.initial)
}