报错Error: Uncaught (in promise) TypeError: Object(…) is not a function at eval
本文介绍如果出现报错Error: Uncaught (in promise) TypeError: Object(...) is not a function at eval
下面是代码,后来发现出现bug原因是没有定义这个updateCalculate接口
import { updateCalculate } from '@/api/sales-reserve'
return new Promise((resolve, reject) => {
updateCalculate(data)
.then((res) => {
this.$message.success('成功')
resolve(true);
})
.catch((err) => {
console.log(err);
reject(false);
})
});