报错:Property or method "then" is not defined on the instance
来源:5-18 Modal交互补充

xmhua
2021-06-24
点购物车图标,提示框显示,
点击关闭按钮或查看购物车按钮,提示框关闭了,但报错:Property or method “then” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
写回答
4回答
-
河畔一角
2021-06-26
main.js中37行改成Vue.prototype.axios=axios
这是原型挂载,Vue-axios插件有问题032021-06-28 -
xmhua
提问者
2021-06-25
main.js:
package.json
index.vue用了this.axios.get().then的地方:
00 -
xmhua
提问者
2021-06-25
Modal.vue的代码
00 -
河畔一角
2021-06-24
检查你哪个地方用到了then方法,我只能告诉你这个警告提示的是then找不到,因为你没有贴代码
042021-06-25
相似问题
yarn2使用vue create报错
回答 1
老师我这里效果实现了,但是还是报错了
回答 1