diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/WorkbenchOverviewTables.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/WorkbenchOverviewTables.vue index cfd19218..21336e44 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/WorkbenchOverviewTables.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/WorkbenchOverviewTables.vue @@ -7,7 +7,6 @@ import { message, Segmented } from 'ant-design-vue'; import CategoryComparisonTable from '../store-overview/components/CategoryComparisonTable.vue'; import PlatformSummaryCard from '../store-overview/components/PlatformSummaryCard.vue'; import ShopComparisonTable from '../store-overview/components/ShopComparisonTable.vue'; - import { getWorkbenchCategoryOverview, getWorkbenchPlatformOverview, @@ -17,8 +16,10 @@ import { defineOptions({ name: 'WorkbenchOverviewTables' }); -const taxRate = ref(0.04); -const activeMode = ref<'shop' | 'platform' | 'category' | 'product'>('shop'); +withDefaults(defineProps<{ taxRate?: number }>(), { + taxRate: 0.04, +}); +const activeMode = ref<'category' | 'platform' | 'product' | 'shop'>('shop'); const shopOverview = getWorkbenchShopOverview(); const platformOverview = getWorkbenchPlatformOverview(); @@ -56,8 +57,11 @@ function navigateToShopOverview(shopId: number) {