fix(mini): sync cached tab bars with the visible page
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { getPageStyle } from '@/utils/page-style'
|
||||
import { setActiveTabRoute } from '@/utils/tab-bar'
|
||||
import { View, Text, Map } from '@tarojs/components'
|
||||
import { useState } from 'react'
|
||||
import Taro, { useDidShow } from '@tarojs/taro'
|
||||
@@ -139,6 +140,7 @@ export default function Location() {
|
||||
const [isGuest, setIsGuest] = useState(false)
|
||||
|
||||
useDidShow(() => {
|
||||
setActiveTabRoute('pages/location/index')
|
||||
void loadLocation(true)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user