mixin.js 196 B

12345678910
  1. import Vue from 'vue'
  2. Vue.mixin({
  3. onReady(){
  4. const userData = uni.getStorageSync('userData');
  5. uni.setNavigationBarTitle({
  6. title: userData ? userData.user.name : "",
  7. })
  8. },
  9. })