Skip to content

Commit

Permalink
revert: tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 22, 2024
1 parent 0b20a3d commit a3f6a07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stores/settings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { skipHydrate } from 'pinia';
import { useStorage } from '@vueuse/core';

import { umami } from '~analytics/umami';
// import { umami } from '~analytics/umami';

export type ListSortMode = 'byCity' | 'byProfit';
export type ProfitComputeRule = 'maxPriceChange' | 'noChange';
Expand All @@ -19,14 +19,14 @@ export const useSettingStore = defineStore('setting', () => {
const switchListSortModeTo = (targetMode: ListSortMode) => {
listSortMode.value = targetMode;

umami?.track(`switch list mode to ${targetMode}`).catch(() => {});
// umami?.track(`switch list mode to ${targetMode}`).catch(() => {});
};

// 切换利润计算规则
const switchProfitComputeRuleTo = (targetRule: ProfitComputeRule) => {
profitComputeRule.value = targetRule;

umami?.track(`switch profit compute rule to ${targetRule}`).catch(() => {});
// umami?.track(`switch profit compute rule to ${targetRule}`).catch(() => {});
};

// 切换数据显示项
Expand Down

0 comments on commit a3f6a07

Please sign in to comment.