feat: 添加收益明细类型和相关数据结构,优化收益记录展示逻辑
This commit is contained in:
@@ -5,6 +5,7 @@ import CryptocurrencyColorNuls from "~icons/cryptocurrency-color/nuls";
|
||||
import { client, safeClient } from "@/api";
|
||||
|
||||
const { t } = useI18n();
|
||||
const { vibrate } = useHaptics();
|
||||
|
||||
const holdingsData = ref<HoldingItem[]>([]);
|
||||
const isLoading = ref(false);
|
||||
@@ -18,9 +19,11 @@ async function fetchHoldings() {
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
async function handleRefresh(event: RefresherCustomEvent) {
|
||||
await fetchHoldings();
|
||||
event.target.complete();
|
||||
function handleRefresh(event: RefresherCustomEvent) {
|
||||
vibrate();
|
||||
fetchHoldings().finally(() => {
|
||||
event.target.complete();
|
||||
});
|
||||
}
|
||||
|
||||
function getStatusColor(status: string) {
|
||||
|
||||
Reference in New Issue
Block a user