From 0aa4347177557ba0931b33212a3a82afba054911 Mon Sep 17 00:00:00 2001 From: Seven Date: Sun, 11 Jan 2026 01:57:38 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=20mocks=20?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=EF=BC=8C=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BB=93=E6=9E=84=EF=BC=9B=E6=9B=B4=E6=96=B0=E5=B8=82=E5=9C=BA?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E6=A0=B7=E5=BC=8F=EF=BC=8C=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=AF=BC=E8=88=AA=E7=9A=84=E5=B8=83=E5=B1=80?= =?UTF-8?q?=EF=BC=9B=E4=BF=AE=E5=A4=8D=E9=80=9A=E7=9F=A5=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=20API=20=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 43 ++++++++++++++++---------------------- src/views/market/index.vue | 5 +++++ src/views/notify/index.vue | 2 +- 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/src/main.ts b/src/main.ts index a520081..eb3198d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,6 @@ import uiComponents from "@/ui"; import App from "./App.vue"; import { authClient } from "./auth"; import { i18n } from "./locales"; -import { setupMocks } from "./mocks"; import { router } from "./router"; /* Core CSS required for Ionic components to work properly */ @@ -94,34 +93,28 @@ function initTradingView() { return Promise.all([promise1, promise2]); } -function initApp() { - initTradingView().then(() => { - authClient.getSession().then((session) => { - const pinia = createPinia(); - const userStore = useUserStore(pinia); - userStore.setToken(session.data?.session.token || ""); +initTradingView().then(() => { + authClient.getSession().then((session) => { + const pinia = createPinia(); + const userStore = useUserStore(pinia); + userStore.setToken(session.data?.session.token || ""); - const app = createApp(App) - .use(IonicVue, { - backButtonText: "返回", - mode: "ios", - statusTap: true, - swipeBackEnabled: true, + const app = createApp(App) + .use(IonicVue, { + backButtonText: "返回", + mode: "ios", + statusTap: true, + swipeBackEnabled: true, // rippleEffect: true, // animated: false, - }) - .use(uiComponents) - .use(pinia) - .use(router) - .use(i18n); + }) + .use(uiComponents) + .use(pinia) + .use(router) + .use(i18n); - router.isReady().then(() => { - app.mount("#app"); - }); + router.isReady().then(() => { + app.mount("#app"); }); }); -} - -setupMocks().then(() => { - initApp(); }); diff --git a/src/views/market/index.vue b/src/views/market/index.vue index f883974..c49ad1c 100644 --- a/src/views/market/index.vue +++ b/src/views/market/index.vue @@ -55,10 +55,15 @@ ion-searchbar { padding: 0; } :deep(.tabs) .ui-tabs__nav-wrapper { + display: flex; margin: 0 auto; margin-bottom: 10px; width: 100%; } +:deep(.tabs) .ui-tabs__nav { + display: flex; + width: 100%; +} :deep(.tabs) .ui-tab--segment { font-size: 13px; padding: 6px !important; diff --git a/src/views/notify/index.vue b/src/views/notify/index.vue index f9f29ce..4e9748d 100644 --- a/src/views/notify/index.vue +++ b/src/views/notify/index.vue @@ -5,7 +5,7 @@ import { toastController } from "@ionic/vue"; import IcBaselineNotificationsNone from "~icons/ic/baseline-notifications-none"; import IconParkOutlineClearFormat from "~icons/icon-park-outline/clear-format"; import MaterialSymbolsAndroidContacts from "~icons/material-symbols/android-contacts"; -import { client, mockClient, safeClient } from "@/api"; +import { client, safeClient } from "@/api"; import { NotificationTypeIcon } from "./enum"; const router = useRouter();