Ionic vue running on device , the login work successfully but when it directed me to the dashboard , it didn't get the data from api and the user details



image

Please share where/how you are calling these methods in the Ionic pages/views.


this is dashboard view and also in the menu view bellow

How about your login page?

This sounds like the classic issue of not understanding Ionic’s Lifecycle - Vue Lifecycle | Ionic Documentation


when i open it with ionic serve all work correctly :cry:

That’s very possible due to how Live Reload works. Try swapping onMounted with ionViewWillEnter or ionViewDidEnter.

hey i open google inspect so this is the login response


and this is getuser function me response

Seems like you need to fix that origin issue then. That looks like a custom response from your backend as a standard CORS error doesn’t return a response.