Commit 8b1a6286 authored by 何虹's avatar 何虹 💬

优化

parent e7e8a1c0
Pipeline #25778 passed with stage
in 1 minute and 6 seconds
...@@ -770,11 +770,15 @@ export default { ...@@ -770,11 +770,15 @@ export default {
} }
this.openFullScreen('请稍等') this.openFullScreen('请稍等')
this.$API.post(url, {}, {}, data).then(res => { this.$API.post(url, {}, {}, data).then(res => {
if (res.data.message === '保存成功') { const { id } = res.data || {}
this.$message.success(res.data.message) this.ruleForm.id = id
} else { this.$message.success('保存成功!')
this.$message.error(res.data.message) // if (res.data.message === '保存成功') {
} // this.$message.success(res.data.message)
// } else {
// this.$message.error(res.data.message)
// }
// if (str !== 'service_ruleForm') { //保存完不刷新 // if (str !== 'service_ruleForm') { //保存完不刷新
// this.get_project() // this.get_project()
// } // }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment