+ {/* Back button */}
+ {onBack && (
+
+ )}
◆
{title}
{subtitle && (
@@ -19,7 +33,7 @@ export default function TopHud({ title = '码枪堂 2.0', subtitle, sections = [
>
)}
-
+
{sections.map((s, i) => (
{s.label}
@@ -27,7 +41,27 @@ export default function TopHud({ title = '码枪堂 2.0', subtitle, sections = [
))}
- V0.2.1
+
+ {/* Window controls */}
+
+
+
+ V0.2.1
);
diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx
index 5fad043..d58db6e 100644
--- a/src/pages/Login.tsx
+++ b/src/pages/Login.tsx
@@ -7,6 +7,10 @@ import { useAuth } from '../hooks/useAuth';
import { useAuthStore } from '../stores/authStore';
import { getVipStatus, activateVip } from '../services/auth.api';
+function callElectron(method: string) {
+ try { (window as any).electronAPI?.[method](); } catch {}
+}
+
export default function Login() {
const navigate = useNavigate();
const { login } = useAuth();
@@ -50,15 +54,20 @@ export default function Login() {
return (
- {/* 品牌 */}
+ {/* 关闭按钮 */}
+
+
- {/* 认证卡片 */}
- {/* 标签页 */}
{(['login', 'register', 'vip'] as const).map(t => (