From 570efb7dea3b4d31f8fb21150e4524c1a05a6a7f Mon Sep 17 00:00:00 2001 From: SZCJW <792430652@qq.com> Date: Sat, 14 Mar 2026 02:39:01 +0800 Subject: [PATCH] x --- static/vue-app.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/static/vue-app.js b/static/vue-app.js index fbd1ce0..41c3a15 100644 --- a/static/vue-app.js +++ b/static/vue-app.js @@ -419,7 +419,8 @@ const HomeView = {
- 加载中... +

正在加载任务数据...

+

DEBUG: {{ route.params.taskId }}

@@ -1135,6 +1136,7 @@ const ResultView = { }); const loadTask = async () => { + console.log('[ResultView] loadTask 开始, taskId:', route.params.taskId); try { state.task = await apiRequest(`/api/status/${route.params.taskId}`, { method: 'POST' }); console.log('任务数据:', state.task); @@ -1167,6 +1169,10 @@ const ResultView = { return priorityMap[priority] || priority; }; + const isFoamMaterial = (material) => { + return material === 'aluminum_foam'; + }; + return { state, formatFileSize, formatDateTime, formatNumber, getPriorityText, isFoamMaterial }; }, template: ` @@ -1175,7 +1181,14 @@ const ResultView = {

分析结果

- + +
+

DEBUG: ResultView

+

taskId: {{ route.params.taskId }}

+

loading: {{ state.loading }}

+

task: {{ state.task ? 'exists' : 'null' }}

+

error: {{ state.error }}

+
加载中...