Edit login suoerAdmin

This commit is contained in:
2026-09-19 22:42:51 +03:30
parent b016b4754f
commit 605e1d3340
19 changed files with 717 additions and 43 deletions
+2 -2
View File
@@ -28,10 +28,10 @@ export const usePlatformAuthStore = defineStore('platform-auth', () => {
localStorage.setItem(ADMIN_KEY, JSON.stringify(payload.admin));
}
async function login(email: string, password: string) {
async function login(mobile: string, password: string) {
const { data } = await platformApi.post<PlatformLoginResponse>(
'/platform/auth/login',
{ email, password },
{ mobile, password },
);
persist(data);
}