美文网首页
Vue常见错误

Vue常见错误

作者: 阡陌昏晨 | 来源:发表于2022-11-17 09:38 被阅读0次

1、TypeError: Cannot read properties of undefined (reading ‘then‘)

应该是mock.mock('/api/home/getData',function(){
console.log('getData被拦截到了')

return []
}) 中的 花括号变成了小括号 之类的错误

相关文章

网友评论

      本文标题:Vue常见错误

      本文链接:https://www.haomeiwen.com/subject/efxpxdtx.html