编辑接口修改

This commit is contained in:
zyx.net
2023-09-06 16:49:13 +08:00
parent fb14519940
commit 42f1d3a688
2 changed files with 8 additions and 8 deletions
@@ -609,12 +609,12 @@ export default {
this.confirmLoading = true
let url = ''
let action = ''
if (this.formInline.id) {
url = this.url.edit
action = putAction
} else {
if (this.title == this.$t('newlyAdded')) {
url = this.url.add
action = postAction
} else {
url = this.url.edit
action = putAction
}
// Object.keys(formInline).forEach(res => {
// if (formInline[res] && formInline[res] instanceof Array) {
@@ -609,12 +609,12 @@ export default {
this.confirmLoading = true
let url = ''
let action = ''
if (this.formInline.id) {
url = this.url.edit
action = putAction
} else {
if (this.title == this.$t('newlyAdded')) {
url = this.url.add
action = postAction
} else {
url = this.url.edit
action = putAction
}
// Object.keys(formInline).forEach(res => {
// if (formInline[res] && formInline[res] instanceof Array) {