feat: update color carrier
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
cityStore,
|
||||
editSightStore,
|
||||
LoadingSpinner,
|
||||
selectedCityStore,
|
||||
} from "@shared";
|
||||
import { useBlocker, useParams } from "react-router-dom";
|
||||
|
||||
@@ -25,6 +26,11 @@ export const EditSightPage = observer(() => {
|
||||
const { sight, getSightInfo, needLeaveAgree, getRightArticles } = editSightStore;
|
||||
const { getArticles } = articlesStore;
|
||||
|
||||
useEffect(() => {
|
||||
selectedCityStore.setIsLocked(true);
|
||||
return () => selectedCityStore.setIsLocked(false);
|
||||
}, []);
|
||||
|
||||
const { id } = useParams();
|
||||
const { getCities } = cityStore;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user