fix: repair monitor sidebar and alert rendering

This commit is contained in:
zhi
2026-03-11 17:26:37 +00:00
parent d574258c8e
commit ddcbd28967
2 changed files with 15 additions and 17 deletions

View File

@@ -144,9 +144,7 @@ export default function MonitorPage() {
const createChallenge = async (id: number) => {
const r = await api.post<{ identifier: string; challenge_uuid: string; expires_at: string }>('/monitor/admin/servers/' + id + '/challenge')
alert('identifier=' + r.data.identifier + '
challenge_uuid=' + r.data.challenge_uuid + '
expires_at=' + r.data.expires_at)
alert('identifier=' + r.data.identifier + '\nchallenge_uuid=' + r.data.challenge_uuid + '\nexpires_at=' + r.data.expires_at)
}
if (loading) return <div className='loading'>Monitor loading...</div>