Commit 68251435 authored by YIyiyi's avatar YIyiyi

perf: 优化新增业务

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