catch
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
SettlementStatus
|
||||
} from '../model/types';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
import { showAlert } from '@/widgets/show-alert';
|
||||
|
||||
export const CalendarWrap = () => {
|
||||
const { t, i18n } = useTranslation();
|
||||
@@ -69,6 +70,11 @@ export const CalendarWrap = () => {
|
||||
setCompletedList(completedArr);
|
||||
setCompletedDateList(completedDateArr);
|
||||
}
|
||||
}).catch((e: any) => {
|
||||
if(e.response?.data?.error?.message){
|
||||
showAlert(e.response?.data?.error?.message);
|
||||
return;
|
||||
}
|
||||
}).finally(() => {
|
||||
let maxYearMonth = moment().format('YYYYMM');
|
||||
// let maxYearMonthValue = moment(maxYearMonth).format('YYYYMM');
|
||||
|
||||
Reference in New Issue
Block a user