Vue Js + vueformulate + Wp Api Rest + Gravity Forms 插件

问题描述

我正在学习 VueJS 并尝试使用 WP API Rest + VueJS + VueFormulate 来创建表单。

我的想法是用户可以将 PDF 文件上传wordpress 站点

我有这个 wordpress REST API> http://wptest.local/wp-json/wp/v2/media 然后我使用 Axios 将文件上传wordpress,但是当我单击上传按钮时,我在上传文件后收到此错误

vue.runtime.esm.js: 1887 TypeError: Converting circular structure to JSON
     -> starting at object with constructor 'y'
     | property 'context' -> object with constructor 'Object'
     --- property 'model' closes the circle
     at JSON.stringify (<anonymous>)

这是我的代码https://codepen.io/dmezaromero/pen/jOVJzGQ

有什么建议吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)