Vue常见错误

2022-11-17  本文已影响0人  阡陌昏晨

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

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

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

上一篇 下一篇

猜你喜欢

热点阅读