Created
October 31, 2017 07:07
-
-
Save chnbohwr/c95ab22a7b676591ba6f28c18792adf4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const afterLogin = async() => { | |
| const datas = await Promise.all([ | |
| axios.get('/profileData'), | |
| axios.get('/menuData'), | |
| axios.get('/api/dashboard/xxxx') | |
| ]); | |
| return { | |
| userProfile: datas[0], | |
| menuData: datas[1], | |
| dashboardData: datas[2] | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment