feat: 增加了登录选项

This commit is contained in:
2025-07-11 16:36:28 +08:00
parent d88c710606
commit b4bb563782
8 changed files with 790 additions and 129 deletions

View File

@@ -1,11 +1,9 @@
<template>
<main>
<div class="flex items-center justify-center min-h-screen">
<div class="relative w-full max-w-md">
<LoginCard />
</div>
<div class="flex items-center justify-center min-h-screen bg-base-200">
<div class="relative w-full max-w-md">
<LoginCard />
</div>
</main>
</div>
</template>
<script setup lang="ts">

View File

@@ -96,7 +96,7 @@
:dsiabled="configing"
>
<RefreshCw v-if="configing" class="animate-spin h-4 w-4 mr-2" />
<RefreshCw v-else class="h-4 w-4 mr-2" />
<CogIcon v-else class="h-4 w-4 mr-2" />
{{ configing ? "配置中..." : "配置摄像头" }}
</button>
<button
@@ -295,6 +295,7 @@
<script setup lang="ts">
import { ref, onMounted, onUnmounted } from "vue";
import {
CogIcon,
Settings,
Video,
Users,
@@ -438,12 +439,12 @@ const takeSnapshot = async () => {
async function configCamera() {
configing.value = true;
try {
// addLog("info", "正在配置并初始化摄像头...");
// const boardconfig = new CameraConfigRequest({
// address: eqps.boardAddr,
// port: eqps.boardPort,
// });
// await videoClient.configureCamera(boardconfig);
addLog("info", "正在配置并初始化摄像头...");
const boardconfig = new CameraConfigRequest({
address: eqps.boardAddr,
port: eqps.boardPort,
});
await videoClient.configureCamera(boardconfig);
const status = await videoClient.getCameraConfig();
if (status.isConfigured) {