WeChat Mini Programs aurora IM initializes init why other pages successfully call JIM not defined within app.js

JIM is not defined;at pages/record/record page lifeCycleMethod onLoad function
ReferenceError: JIM is not defined
 /**
   * --
   */
  onLoad: function (option) {
    wx.showLoading({
      title: "",
      mask: true
    });

    //
    JIM.login({
      "username": app.userIMinfo.username,
      "password": app.userIMinfo.password,
      "is_md5": true
    }).onSuccess(function (data) {
      console.log(data)
      wx.hideLoading();

      //
      JIM.onMsgReceive(function (data) {
        console.log(data)
        if (data.messages.length >= 1) {
          //userMsg
          let msgBox = that.data.userMsg
          msgBox = msgBox.concat(data.messages)
          that.setData({
            userMsg: msgBox
          })
          //msgBos
          wx.setStorage({
            key: option.id,
            data: msgBox
          })
        }
      });
      //
      JIM.onSyncConversation(function (data) {
        console.log(data)
        let msgBox = that.data.userMsg
        msgBox = msgBox.concat(data.messages)
        that.setData({
          userMsg: msgBox
        })
        wx.setStorage({
          key: option.id,
          data: msgBox
        })
      });

    }).onFail(function (data) {
      console.log(data)
      wx.showToast({
        title: "",
        icon: "fail",
        duration: 1500
      })
    })


  },

other pages should also be initialized


what to do? I just used this aurora chat function. Ask for help

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54af4-44007.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54af4-44007.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?