Frappe UI Vue error 404 on history mode

I use Frappe UI and Vue by customizing the frontend HRMS, but when I try to access host/mobile it will redirect to host/mobile/login and it works and doesn’t error, but when I refresh the page (host/mobile/login) or access directly with url , it’s error 404 frappe. Maybe because of Vue route history mode. But how do I set it so it doesn’t 404? maybe the nginx conf? or something else?

My website is: https://bimbelku.web.id/mobile/
and when access that link, will be redirect to https://bimbelku.web.id/mobile/login, but when i refresh that page, that return 404 frappe page.

First access site

After refresh page