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 []
}) 中的 花括号变成了小括号 之类的错误