Commit 94e0ba07 by xinlaa

--no commit message

1 parent fd6b19ce
......@@ -43,7 +43,7 @@ export function getScop(id) {
]
}
*/
export function edit(data) {
export function update(data) {
return request({
url: service,
method: 'put',
......
<script>
import { edit } from '@/api/drainageCode/welcome'
import { update, add } from '@/api/drainageCode/welcome'
import PhoneDialog from '@/components/PhoneDialog'
import SelectMaterial from '@/components/SelectMaterial'
......@@ -24,7 +24,7 @@ export default {
methods: {
getData() {},
submit() {
edit(this.form)
;(this.form.id ? update : add)(this.form)
},
insertName() {
this.form.welcomeMsg += '#客户昵称#'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!