fix: add missing progressStatus computed in PptParsing.vue

progressStatus was referenced in the template but never defined,
causing a Vue runtime warning on every render.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wsb1224 2026-07-24 12:57:33 +08:00
parent 8b4988b0d5
commit c8832ae50c

View File

@ -59,7 +59,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { ref, computed, onMounted } from 'vue'
import { Loading } from '@element-plus/icons-vue'
import { pptApi } from '@/utils/ppt-api'
@ -77,6 +77,7 @@ const progress = ref(0)
const statusText = ref('准备解析...')
const error = ref('')
const results = ref<any[]>([])
const progressStatus = computed(() => (progress.value >= 100 ? 'success' : ''))
const typeTagMap: Record<string, string> = {
savings: 'success',