mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 14:25:23 +00:00
[Update] 修改通过创建更新页面
This commit is contained in:
@@ -120,7 +120,7 @@ export default {
|
|||||||
async mounted() {
|
async mounted() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
try {
|
try {
|
||||||
this.form = await this.getFormValues()
|
this.form = await this.getFormValue()
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
@@ -156,7 +156,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async getFormValues() {
|
async getFormValue() {
|
||||||
if (this.method !== 'put') {
|
if (this.method !== 'put') {
|
||||||
return Object.assign(this.form, this.initial)
|
return Object.assign(this.form, this.initial)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user