feat: 添加每月收益页面及相关组件,更新路由以支持新功能
This commit is contained in:
@@ -7,6 +7,10 @@ const router = useRouter();
|
||||
function navigateToTotal() {
|
||||
router.push("/revenue/total");
|
||||
}
|
||||
|
||||
function navigateToMonthly() {
|
||||
router.push("/revenue/monthly");
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -24,7 +28,10 @@ function navigateToTotal() {
|
||||
{{ t("asset.revenue.totalRevenue") }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-1 flex flex-col items-center gap-2 cursor-pointer transition-opacity active:opacity-70">
|
||||
<div
|
||||
class="col-span-1 flex flex-col items-center gap-2 cursor-pointer transition-opacity active:opacity-70"
|
||||
@click="navigateToMonthly"
|
||||
>
|
||||
<ion-icon :icon="calendarOutline" class="text-2xl text-primary" />
|
||||
<div class="text-xs">
|
||||
{{ t("asset.revenue.monthlyRevenue") }}
|
||||
|
||||
Reference in New Issue
Block a user