Commit 3f4ca788 by 胡悦

提交

1 parent 2e6bf393
......@@ -318,16 +318,15 @@ export default {
params.id = this.accountParams.id
api = 'update'
}
console.log(params)
accountApi[api](params).then(res => {
const { code, data } = res
if (code == '0' && data) {
this.notice.okTips()
// this.$root.close()
window.history.go(-1)
} else {
this.notice.errorTips(res.message)
}
}).catch(err => {
this.notice.errorTips(err)
})
} else {
this.notice.errorTips('请至少选择一项')
......@@ -349,16 +348,15 @@ export default {
params.id = this.accountParams.id
api = 'update'
}
console.log(params)
accountApi[api](params).then(res => {
const { code, data } = res
if (code == '0' && data) {
this.notice.okTips()
// this.$root.close()
window.history.go(-1)
} else {
this.notice.errorTips()
}
}).catch(err => {
this.notice.errorTips(err)
})
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!