报错Error: Uncaught (in promise) TypeError: Object(...) is not a function at eval

报错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);
       })
   });

版权声明:本文为weixin_46724415原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。