fix: switch admin to subdomain mode and fix frozen-lockfile build

- Remove /admin path prefix (using admin.protdskj.top subdomain instead)
- Change pnpm install to --no-frozen-lockfile for lockfile compatibility
- Simplify admin Nginx config to standard SPA serving

🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
2026-06-09 11:24:40 +08:00
parent 4caedde3fc
commit 9c6c5e51f3
7 changed files with 10 additions and 26 deletions

View File

@@ -3,7 +3,7 @@ import router from './router';
import { clearStaffSession, reconcileStaffSessionFromToken, useAuthStore } from './stores/auth';
import { ensureStaffSession, resetStaffSessionHydration } from './utils/session-hydrate';
const api = axios.create({ baseURL: '/admin/api' });
const api = axios.create({ baseURL: '/api' });
let handling401 = false;
let handling403Portal = false;

View File

@@ -3,7 +3,7 @@ import { useAuthStore } from '../stores/auth';
import { ensureStaffSession } from '../utils/session-hydrate';
const router = createRouter({
history: createWebHistory('/admin'),
history: createWebHistory(),
routes: [
{ path: '/login', component: () => import('../views/Login.vue'), meta: { public: true } },
{