解决供应商导游在返回时没有读取的情况

release
Jimmy Liow 2 years ago
parent 93409625b3
commit ede6dfff8f

@ -112,6 +112,7 @@ function Newest() {
if (location.search !== '?back') { if (location.search !== '?back') {
// //
onSearchClick(1, 1); onSearchClick(1, 1);
}
reservationStore.fetchAllGuideList() reservationStore.fetchAllGuideList()
.then((guideList) => { .then((guideList) => {
const selectOptions = guideList.map((data, index) => { const selectOptions = guideList.map((data, index) => {
@ -122,7 +123,6 @@ function Newest() {
}); });
setGuideSelectOptions(selectOptions); setGuideSelectOptions(selectOptions);
}); });
}
return () => { return () => {
// unmount... // unmount...
}; };

Loading…
Cancel
Save