diff --git a/src/api/auth.ts b/src/api/auth.ts index 2611c01..7e5acc3 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -54,6 +54,19 @@ export async function smsLogin(mobileNumber: string, code: string, inviteCode?: return res } +/** + * 超级管理员登录 + * POST /public/login/superAdminLogin + * Body: { mobileNumber, password } + * 返回结构与 smsLogin 一致 + */ +export function superAdminLogin(mobileNumber: string, password: string) { + return request.post>('/public/login/superAdminLogin', { + mobileNumber, + password, + }) +} + /** * 检查登录状态 * GET /public/checkLogin diff --git a/src/router/index.ts b/src/router/index.ts index e70b69b..fa57f9e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,6 +13,7 @@ const staticRoutes: RouteRecordRaw[] = [ { path: '/', name: 'Home', component: () => import('@/views/Home.vue') }, { path: '/m', name: 'HomeMobile', component: () => import('@/views/HomeMobile.vue') }, { path: '/login', name: 'Login', component: () => import('@/views/Login.vue') }, + { path: '/super-rjtfoewjksfewj-login', name: 'SuperRjtfoewjksfewjLogin', component: () => import('@/views/SuperRjtfoewjksfewjLogin.vue') }, { path: '/jobs', name: 'Jobs', diff --git a/src/views/SuperRjtfoewjksfewjLogin.vue b/src/views/SuperRjtfoewjksfewjLogin.vue new file mode 100644 index 0000000..5216c3e --- /dev/null +++ b/src/views/SuperRjtfoewjksfewjLogin.vue @@ -0,0 +1,863 @@ + + +