title.js 169 B

12345678910
  1. export default {
  2. setTitle(text) {
  3. console.log("标题", text);
  4. const page = uni.$mp.page;
  5. const title = page.$refs.title;
  6. title.text = text;
  7. },
  8. };