经过排查,发现原因是导入的JS方法没有用大括号接收,然后又把它当做方法调用了。 导入的js方法要用大括号接收: import {shopsratings} from '../../request/api.js