浏览代码

修复审批成功后没有跳转

xjj 2 年之前
父节点
当前提交
f138cb3423
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/pages/Detail/Index.js

+ 5 - 1
src/pages/Detail/Index.js

@@ -284,7 +284,7 @@ function Detail(props) {
             id: templateId,
           },
         });
-        if (audit_comment == 3) {
+        if (audit_status == 3) {
           // 更新审批流
           dispatch({
             type: 'detail/queryAuditList',
@@ -297,6 +297,10 @@ function Detail(props) {
             },
           });
         } else {
+          dispatch({
+            type: 'authList/queryAuthList',
+            payloda: { user_id: currentUser.ID },
+          });
           localStorage.excelId = newVersion.id;
           setVersion({
             ...version,