fix(mini): sync cached tab bars with the visible page
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import FirmwareProgress from '@/components/firmware-progress'
|
||||
import { getRoleArtwork } from '@/utils/artwork'
|
||||
import { getPageStyle } from '@/utils/page-style'
|
||||
import { setActiveTabRoute } from '@/utils/tab-bar'
|
||||
import { View, Text, Image, Input, Button } from '@tarojs/components'
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import Taro, { useDidHide, useDidShow, useShareAppMessage } from '@tarojs/taro'
|
||||
@@ -130,6 +131,7 @@ export default function Sleep() {
|
||||
const isFirmwareStatusPollingRef = useRef(false)
|
||||
|
||||
useDidShow(() => {
|
||||
setActiveTabRoute('pages/sleep/index')
|
||||
void loadData()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user