I encountered an error while moving bricks today.
问题:
Uncaught (in promise) TypeError: Object(…) is not a function
如图所示
Reason:
After investigation, it was found that the reason was that the imported JS method was not received with curly brackets, and then it was called as a method. Low-level error
Solution:
The imported js method must be received with braces:
import {
callMethodLimitPage} from './getAllData.js'