Commit 68251435 authored by YIyiyi's avatar YIyiyi

perf: 优化新增业务

parent 61d63b47
...@@ -191,8 +191,9 @@ export default { ...@@ -191,8 +191,9 @@ export default {
let { code, msg, data } = res.data; let { code, msg, data } = res.data;
if (code === 1) { if (code === 1) {
if (!this.form.id) { if (!this.form.id) {
let businessId = data.id ? data.id : data.entity.id;
let result = await addInBusiness({ let result = await addInBusiness({
businessIds: String(data.entity.id), businessIds: String(businessId),
siteId: this.siteId, siteId: this.siteId,
}); });
if (result.data.code === 1) { if (result.data.code === 1) {
......
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