text: import { observable, action } from "mobx";
  
  class ChatRecords {
      @observable showAvatarUpload = false;
      @observable imgFile = null;
  
      // 显示消息历史界面
      @action handleShowAvatarUpload(
          showAvatarUpload = self.showAvatarUpload,
          imgFile = self.imgFile
      ) {
          self.showAvatarUpload = showAvatarUpload;
          self.imgFile = imgFile;
      }
  }
  
  const self = new ChatRecords();
  export default self;
  