홈 처리

This commit is contained in:
focp212@naver.com
2025-10-23 14:45:34 +09:00
parent 6bfd22e192
commit 86b72b10fa
5 changed files with 26 additions and 9 deletions

View File

@@ -14,6 +14,7 @@ export const BoxContainer2 = () => {
const userMid = useStore.getState().UserStore.mid;
const [mid, setMid] = useState<string>(userMid);
const [searchMonth, setSearchMonth] = useState<string>(moment().format('YYYYMM'));
const [searchDate, setSearchDate] = useState<string>(moment().format('YYYYMMDD'));
const [sales, setSales] = useState<Sales>();
@@ -33,7 +34,7 @@ export const BoxContainer2 = () => {
const callMonth = () => {
let params: HomeMonthParams = {
searchDate: searchDate,
searchDate: searchMonth,
mid: mid,
};
homeMonth(params).then((rs: HomeMonthResponse) => {
@@ -74,8 +75,8 @@ export const BoxContainer2 = () => {
};
useEffect(() => {
// callMonth();
// callOverview();
callMonth();
callOverview();
}, []);
const onClickToNavigate = () => {