feat: 添加 IonSegment 和 IonSegmentButton 组件支持,更新 api-types 依赖版本,优化钱包状态获取逻辑
This commit is contained in:
@@ -26,7 +26,7 @@ export const useWalletStore = defineStore("wallet", () => {
|
||||
state.balances = data;
|
||||
return;
|
||||
}
|
||||
const { data: balances } = await safeClient(() => client.api.asset.balances.get(), { silent: true });
|
||||
const { data: balances } = await safeClient(() => client.api.wallet.balances.get(), { silent: true });
|
||||
state.balances = balances.value || [];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import IcBaselinePermContactCalendar from "~icons/ic/baseline-perm-contact-calendar";
|
||||
import IcOutlineCleaningServices from "~icons/ic/outline-cleaning-services";
|
||||
import IconParkOutlineClearFormat from "~icons/icon-park-outline/clear-format";
|
||||
import MaterialSymbolsAndroidContacts from "~icons/material-symbols/android-contacts";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -8,10 +8,10 @@ import IcOutlineCleaningServices from "~icons/ic/outline-cleaning-services";
|
||||
<IonHeader class="ion-no-border">
|
||||
<ion-toolbar class="ui-toolbar">
|
||||
<ion-button slot="start" fill="clear">
|
||||
<IcOutlineCleaningServices slot="icon-only" />
|
||||
<IconParkOutlineClearFormat slot="icon-only" />
|
||||
</ion-button>
|
||||
<ion-button slot="end" fill="clear">
|
||||
<IcBaselinePermContactCalendar slot="icon-only" />
|
||||
<MaterialSymbolsAndroidContacts slot="icon-only" />
|
||||
</ion-button>
|
||||
<ion-title>Chat</ion-title>
|
||||
</ion-toolbar>
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
|
||||
<template>
|
||||
<IonPage>
|
||||
<IonContent :fullscreen="true" class="ion-padding">
|
||||
<router-view />
|
||||
</IonContent>
|
||||
<ion-router-outlet />
|
||||
</IonPage>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user