소스 검색

refactor: data in the process cannot be deleted

Casper Dai 3 년 전
부모
커밋
cd75fdad6b
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/api/base.js

+ 3 - 0
src/api/base.js

@@ -81,6 +81,9 @@ export function addUser (data) {
 }
 
 export function canDel ({ status, org, createBy }) {
+  if (status === State.SUBMITTED) {
+    return false
+  }
   if (store.getters.isSuperAdmin) {
     return true
   }