Commit 5ce49baf by chenshu

feat:初始化

parent 6f0900aa
...@@ -32,7 +32,6 @@ const App: React.FC = (props: any) => { ...@@ -32,7 +32,6 @@ const App: React.FC = (props: any) => {
useEffect(() => { useEffect(() => {
getStorePermission();
getStoreAndUserInfo(); getStoreAndUserInfo();
if (window.location.hash === "#/") { if (window.location.hash === "#/") {
window.RCHistory.replace({ window.RCHistory.replace({
...@@ -73,6 +72,7 @@ const App: React.FC = (props: any) => { ...@@ -73,6 +72,7 @@ const App: React.FC = (props: any) => {
User.setStoreType(storeType); User.setStoreType(storeType);
setStoreUserId(storeUserId) setStoreUserId(storeUserId)
getUserPermission(); getUserPermission();
getStorePermission();
}) })
} }
...@@ -98,6 +98,7 @@ const App: React.FC = (props: any) => { ...@@ -98,6 +98,7 @@ const App: React.FC = (props: any) => {
ctx.dispatch(setStoreList(storeVOS)); ctx.dispatch(setStoreList(storeVOS));
setStoreUserId(storeUserId) setStoreUserId(storeUserId)
getUserPermission(); 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