App's getCurrentPage is write-protected import Mini Program template error, what is the reason?

problem description

as the title
error message this.getCurrentPage is not a function;at App setPageUserInfo function
TypeError: this.getCurrentPage is not a function

related codes

/ / Please paste the code text below (do not replace the code with pictures)

setPageUserInfo: function setPageUserInfo() {
    var currentPage = this.getCurrentPage(),
        newdata = {};

    newdata["userInfo"] = this.getUserInfo();
    currentPage.setData(newdata);
  },
  getCurrentPage: function getCurrentPage() {
    var pages = getCurrentPages();
    return pages[pages.length - 1];
  },
Apr.07,2021
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-1e47a3f-44c63.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-1e47a3f-44c63.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?