v1.0.2修复优化

This commit is contained in:
2026-05-06 16:45:43 +08:00
parent 4acdf6c38b
commit b46de0328c
8 changed files with 120 additions and 41 deletions

View File

@@ -28,7 +28,10 @@ if (file_exists($configFile)) {
</head>
<body>
<div class="install-container">
<h1>🤖 AI Chat 安装向导</h1>
<h1>
<svg viewBox="0 0 24 24" width="28" height="28" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-6px;margin-right:10px;"><rect x="3" y="4" width="18" height="12" rx="3"/><circle cx="9" cy="10" r="1.5" fill="currentColor" stroke="none"/><circle cx="15" cy="10" r="1.5" fill="currentColor" stroke="none"/><path d="M8 16v2M16 16v2M12 16v3"/></svg>
AI Chat 安装向导
</h1>
<!-- 步骤指示器 -->
<ul class="step-indicator">
@@ -161,7 +164,7 @@ if (file_exists($configFile)) {
container.innerHTML = checks.map(c => `
<div class="check-item">
<span>${c.name}</span>
<span class="status ${c.pass ? 'pass' : 'fail'}">${c.pass ? '通过' : '未通过'}</span>
<span class="status ${c.pass ? 'pass' : 'fail'}">${c.pass ? '通过' : '未通过'}</span>
</div>
`).join('');
},
@@ -317,7 +320,7 @@ if (file_exists($configFile)) {
const data = await response.json();
if (data.success) {
result.innerHTML = '<div class="alert alert-success">安装成功!正在跳转到登录页...</div>';
result.innerHTML = '<div class="alert alert-success">安装成功!正在跳转到登录页...</div>';
setTimeout(() => { window.location.href = '/login.php'; }, 2000);
} else {
result.innerHTML = '<div class="alert alert-error">安装失败: ' + data.message + '</div>';