Today, a new public method has been written, but the error has been reported since the project is running, the method can not be found, and the reason can not be found in the code, so I would like to ask you for advice here.
Public method: written in public.js file
/**
* :710
* @returns true: false:
* create by hl on 2018-10-09
*/
export const isImgFromLocal = () => {
let curDate = new Date();
let curHour = curDate.getHours();
return curHour >= 7 && curHour <= 10; //710
};
File path:
:
:
will not find the "_ isImgFromLocal" method. I don"t know why there is more "_",
.and there are other public methods in public, other methods can be used normally, but not the new one. Has anyone encountered this problem?