修复默认值给定错误的问题
This commit is contained in:
@@ -101,7 +101,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {apps: [], type: null, sysInfo: {}, customPath: ""},
|
||||
form: {apps: [], type: null, sysInfo: {}, customPath: "", extra: {}},
|
||||
rules: {
|
||||
name: {required: true, message: "请输入"},
|
||||
type: {required: true, message: "请选择"},
|
||||
@@ -137,7 +137,7 @@ export default {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.form = {extra: {}, ...this.form, ...res.data}
|
||||
this.form = {...this.form, ...res.data}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user