Browse Source

fix:工单详情报错

zhangchong 1 năm trước cách đây
mục cha
commit
29518dcbf2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/business/order/components/Order-detail.vue

+ 2 - 2
src/views/business/order/components/Order-detail.vue

@@ -400,8 +400,8 @@ const getDetail = async (id: string) => {
 	try {
 		const res: any = await orderDetail(id);
 		state.ruleForm = res.result;
-		state.workflow = state.ruleForm?.workflow;
-		state.supplements = res.result?.workflow?.supplements;
+		state.workflow = state.ruleForm?.workflow ?? {};
+		state.supplements = res.result?.workflow?.supplements ?? [];
 		state.loading = false;
 		state.isShowDialog = true;
 	} catch (error) {