fix: stabilize admin frontend and resolve TS build errors

This commit is contained in:
Bot
2026-05-01 13:55:01 +08:00
parent 9720bc258f
commit 2da8565e47
17 changed files with 43 additions and 36 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ export default function SettingsPage() {
<FormItem>
<FormLabel>Telegram Bot Token</FormLabel>
<FormControl>
<Input placeholder="123456789:ABCDEF..." {...field} />
<Input placeholder="123456789:ABCDEF..." {...field} value={field.value as string || ""} />
</FormControl>
<FormMessage />
</FormItem>
@@ -273,7 +273,7 @@ export default function SettingsPage() {
<FormItem>
<FormLabel>Telegram Admin Chat ID</FormLabel>
<FormControl>
<Input placeholder="12345678" {...field} />
<Input placeholder="12345678" {...field} value={field.value as string || ""} />
</FormControl>
<FormMessage />
</FormItem>