dcc
2024-07-01 273b1d896d6191b6ec42d56de412b0274667a9ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<template>
  <!-- 1.路由 -->
  <h5 class="fs-12 mt-4 mb-8">{{ t("home") }}/ {{ t(getRouteName) }}</h5>
  <h5 class="fs-12 mt-4 mb-8">据Odaily星球日报报道,据 HODL15Capital 监测,截至 6 月 21 日,美国比特币现货 ETF 共计持有 867532 枚 BTC,AUM 约为 563.9 亿美元。 全球比特币 ETF 共计持有 1029000 枚 BTC,AUM 达 668.85 亿美元。
  </h5>
</template>
<script setup>
import { useRoute, useRouter } from "vue-router";
import { useI18n } from "vue-i18n";
const router = useRouter();
const route = useRoute();
const { t } = useI18n();
const routeList = computed(() => router.options.routes);
const forexRoutes = routeList.value.filter((it) => it.path === "/");
const getRouteName = computed(() => {
  const rp = route.path;
  const item = forexRoutes[0].children.find((it) => it.path === rp); //获取匹配路径的路由
  return item?.label || "";
});
</script>
 
<style lang="scss" scoped>
.fs-12 {
  font-size: 12px;
}
</style>