大家好,我有一个问题,那就是如何使用文本字段更新用户名下面的图片描述了我所做的事情 首先,我使用了模型user.js,然后是UserController.js,然后是route.js 但我不知道如何在循环编辑后从文本字段更新用户名 this is the input vue js file updateUser function in userController this is the router file this is the index.js
因此,目前我已经构建了一个使用Vue.js和PHP的应用程序。PHP是我的后端,它与mysql数据库通信。
我在我的本地机器(Mac)上运行它。当我运行自己的vue.js端时,我使用命令npm run dev This启动一个When服务器,并通过转到地址localhost:8080查看它。我从PHP端向vue.js端发出post和get请求。我唯一能做到这一点的方法就是使用一个名为: Allow control Allow origin的chrome扩展。我不知道该怎么做
我遵循使用Vision,但不幸的是,我继续得到以下CORS错误:
Access to XMLHttpRequest at 'https://vision.googleapis.com/v1/images:annotate?key=MY_KEY_HERE' from origin 'https://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Co