Преглед на файлове

修复审批成功后没有跳转

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,