This commit is contained in:
2026-03-04 22:53:31 +08:00
parent 9c8b16871a
commit b540a4b340
2 changed files with 10 additions and 11 deletions
+6 -7
View File
@@ -598,8 +598,8 @@ a:hover {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: var(--space-2); gap: var(--space-2);
padding: var(--space-3) var(--space-5); padding: var(--space-4) var(--space-6);
font-size: var(--text-sm); font-size: var(--text-base);
font-weight: var(--font-medium); font-weight: var(--font-medium);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
border: none; border: none;
@@ -1482,17 +1482,16 @@ a:hover {
padding: var(--space-2) var(--space-4); padding: var(--space-2) var(--space-4);
font-size: var(--text-sm); font-size: var(--text-sm);
font-weight: var(--font-medium); font-weight: var(--font-medium);
color: var(--text-secondary); color: var(--text-primary);
background: transparent; background: var(--gray-100);
border: 1px solid var(--border-default); border: 1px solid var(--gray-300);
border-radius: var(--radius-md); border-radius: var(--radius-md);
cursor: pointer; cursor: pointer;
transition: all var(--duration-fast) var(--ease-default); transition: all var(--duration-fast) var(--ease-default);
} }
.btn-logout:hover { .btn-logout:hover {
background: var(--gray-100); background: var(--gray-200);
color: var(--text-primary);
} }
.btn-login { .btn-login {
+4 -4
View File
@@ -761,7 +761,7 @@ const MoldInsightView = {
const loadHistory = async () => { const loadHistory = async () => {
try { try {
state.history = await apiRequest('/history'); state.history = await apiRequest('/api/history');
} catch (e) { } catch (e) {
console.error('加载历史记录失败:', e); console.error('加载历史记录失败:', e);
} }
@@ -806,7 +806,7 @@ const MoldInsightView = {
formData.append("file", state.selectedFile); formData.append("file", state.selectedFile);
try { try {
const res = await fetch("/upload", { const res = await fetch("/api/upload", {
method: "POST", method: "POST",
headers: appState.token ? { 'Authorization': `Bearer ${appState.token}` } : {}, headers: appState.token ? { 'Authorization': `Bearer ${appState.token}` } : {},
body: formData body: formData
@@ -833,7 +833,7 @@ const MoldInsightView = {
pollCount++; pollCount++;
state.progress = Math.min(90, 10 + pollCount * 0.5); state.progress = Math.min(90, 10 + pollCount * 0.5);
const task = await apiRequest(`/status/${taskId}`, { method: 'POST' }); const task = await apiRequest(`/api/status/${taskId}`, { method: 'POST' });
state.currentTask = task; state.currentTask = task;
if (task.status === "completed") { if (task.status === "completed") {
@@ -977,7 +977,7 @@ const ResultView = {
const loadTask = async () => { const loadTask = async () => {
try { try {
state.task = await apiRequest(`/status/${route.params.taskId}`, { method: 'POST' }); state.task = await apiRequest(`/api/status/${route.params.taskId}`, { method: 'POST' });
} catch (e) { } catch (e) {
state.error = handleApiError(e, '加载任务详情'); state.error = handleApiError(e, '加载任务详情');
} finally { } finally {