张延森 3 年前
父节点
当前提交
1159e62c94
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/components/CustomNav/index.jsx

+ 4
- 0
src/components/CustomNav/index.jsx 查看文件

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