فهرست منبع

修复审批成功后没有跳转

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