张延森 3 년 전
부모
커밋
1159e62c94
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      src/components/CustomNav/index.jsx

+ 4
- 0
src/components/CustomNav/index.jsx 파일 보기

@@ -64,6 +64,10 @@ export default (props) => {
64 64
     }
65 65
   }
66 66
 
67
+  useEffect(() => {
68
+    Taro.setNavigationBarTitle(title)
69
+  }, [title])
70
+
67 71
   return (
68 72
     <view className='custom-nav' style={navStyle}>
69 73
       <view className='custom-nav-bar' style={navBarStyle}>