fix(mobile): unify empty/loading states on question board and points pages

This commit is contained in:
2026-07-21 01:45:14 +08:00
parent 6d2b5ec8b9
commit 53b15e506c
2 changed files with 5 additions and 6 deletions
+2 -1
View File
@@ -33,7 +33,7 @@
</text>
</view>
</view>
<text v-else class="muted empty">暂无积分明细</text>
<StateBlock v-else type="empty" :card="false" title="暂无积分明细" />
</view>
</view>
</template>
@@ -43,6 +43,7 @@ import { ref } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import type { IncentiveBalance, IncentiveLedgerItem } from '@/types/api';
import { getMyIncentiveBalances, getMyIncentiveLedger } from '@/services/questions';
import StateBlock from '@/components/StateBlock.vue';
const balances = ref<IncentiveBalance[]>([]);
const ledger = ref<IncentiveLedgerItem[]>([]);