feat 数据库问题修复

This commit is contained in:
Ironsp
2026-09-16 17:04:33 +08:00
parent edebda89fc
commit 4ea627c0c0
6 changed files with 25 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ function onIconClick(name: string) {
})
}
else {
console.log(`点击了${name}图标`)
console.log(`点击了导航栏图标`)
}
}
</script>
@@ -36,10 +36,10 @@ function onIconClick(name: string) {
<image class="nav-logo" src="/static/logo.png" mode="aspectFit" @tap="onIconClick('logo')" />
<view class="nav-info">
<text class="nav-title">
{{ project?.project_name || '-----' }}
{{ project?.project_name || '--' }}
</text>
<text class="nav-subtitle">
{{ project?.stake_range || '-----' }}
{{ project?.stake_range || '--' }}
</text>
</view>
</view>

View File

@@ -6,8 +6,8 @@ const props = defineProps<{
}>()
const statusMap: Record<number, string> = {
0: '未完成',
1: '已完成',
0: '已暂停',
1: '已结束',
2: '作业中',
}

View File

@@ -10,9 +10,9 @@ defineProps<{
function getStatusText(status: number) {
const map: Record<number, string> = {
0: '未完成',
0: '已暂停',
1: '已结束',
2: '进行中',
2: '作业中',
}
return map[status] || '未知'
}