Commit 5ce49baf by chenshu

feat:初始化

parent 6f0900aa
......@@ -32,7 +32,6 @@ const App: React.FC = (props: any) => {
useEffect(() => {
getStorePermission();
getStoreAndUserInfo();
if (window.location.hash === "#/") {
window.RCHistory.replace({
......@@ -73,6 +72,7 @@ const App: React.FC = (props: any) => {
User.setStoreType(storeType);
setStoreUserId(storeUserId)
getUserPermission();
getStorePermission();
})
}
......@@ -98,6 +98,7 @@ const App: React.FC = (props: any) => {
ctx.dispatch(setStoreList(storeVOS));
setStoreUserId(storeUserId)
getUserPermission();
getStorePermission();
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment