Metric.tsx 421 B

1234567891011121314151617
  1. import { View, Text } from "@tarojs/components";
  2. import Metric from "@/features/trackSomething/components/Metric";
  3. import { useDidShow, usePullDownRefresh } from "@tarojs/taro";
  4. export default function Page() {
  5. useDidShow(() => {
  6. global.updateTab(1)
  7. })
  8. usePullDownRefresh(() => {
  9. global.refreshMetric()
  10. })
  11. return <View className="container">
  12. <Metric />
  13. </View>
  14. }