feat: add admin login

This commit is contained in:
yanghao05
2025-04-16 20:16:41 +08:00
parent e95fc65f5f
commit 4a9836db68
7 changed files with 88 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
import { http } from '@/utils/http';
import httpClient from './httpClient';
export const authService = {
login(username, password) {
return http.post('/admin/auth/login', { username, password });
return httpClient.post('/admin/auth', { username, password });
},
};