张延森 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}>