编辑接口修改
This commit is contained in:
@@ -609,12 +609,12 @@ export default {
|
|||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
let url = ''
|
let url = ''
|
||||||
let action = ''
|
let action = ''
|
||||||
if (this.formInline.id) {
|
if (this.title == this.$t('newlyAdded')) {
|
||||||
url = this.url.edit
|
|
||||||
action = putAction
|
|
||||||
} else {
|
|
||||||
url = this.url.add
|
url = this.url.add
|
||||||
action = postAction
|
action = postAction
|
||||||
|
} else {
|
||||||
|
url = this.url.edit
|
||||||
|
action = putAction
|
||||||
}
|
}
|
||||||
// Object.keys(formInline).forEach(res => {
|
// Object.keys(formInline).forEach(res => {
|
||||||
// if (formInline[res] && formInline[res] instanceof Array) {
|
// if (formInline[res] && formInline[res] instanceof Array) {
|
||||||
|
|||||||
@@ -609,12 +609,12 @@ export default {
|
|||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
let url = ''
|
let url = ''
|
||||||
let action = ''
|
let action = ''
|
||||||
if (this.formInline.id) {
|
if (this.title == this.$t('newlyAdded')) {
|
||||||
url = this.url.edit
|
|
||||||
action = putAction
|
|
||||||
} else {
|
|
||||||
url = this.url.add
|
url = this.url.add
|
||||||
action = postAction
|
action = postAction
|
||||||
|
} else {
|
||||||
|
url = this.url.edit
|
||||||
|
action = putAction
|
||||||
}
|
}
|
||||||
// Object.keys(formInline).forEach(res => {
|
// Object.keys(formInline).forEach(res => {
|
||||||
// if (formInline[res] && formInline[res] instanceof Array) {
|
// if (formInline[res] && formInline[res] instanceof Array) {
|
||||||
|
|||||||
Reference in New Issue
Block a user