index.js 243 B

123456789101112
  1. Page({
  2. data: {
  3. moduleName: '',
  4. title:'',
  5. },
  6. onLoad(options) {
  7. wx.setNavigationBarTitle({
  8. title: options?.title
  9. })
  10. this.setData({ moduleName: options?.moduleName, title: options?.title.split('-')[0] });
  11. },
  12. });