1、TypeError: Cannot read properties of undefined (reading ‘then‘)
应该是mock.mock('/api/home/getData',function(){
console.log('getData被拦截到了')
return []
}) 中的 花括号变成了小括号 之类的错误
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
网友评论