fix(mobile): unify empty/loading states on question board and points pages
This commit is contained in:
@@ -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[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user