simplify
This commit is contained in:
@@ -2,9 +2,6 @@ import { ElMessage } from 'element-plus';
|
||||
import { useAsyncAction } from '@/composables/actions/useAsyncAction';
|
||||
|
||||
export const isActionCancelled = (error) => {
|
||||
if (error === null || error === undefined) {
|
||||
return false;
|
||||
}
|
||||
if (typeof error === 'string') {
|
||||
return error === 'cancel' || error === 'close';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user