发出补丁请求时出错

时间:2018-07-23 12:29:12

标签: angularjs

在请求我得到的$http.patch时出现错误

  

$ http.patch不是函数

那么我该如何处理该错误

$http.patch("http://94.237.83.114:3000/WF_CreateAccount", JSON.stringify({
    UserAuthName: $scope.UserAuthName,
    UserPassword: $scope.UserPassword
  }))
  .then((MediationResponse) => {
      console.log(MediationResponse.data);
      if (MediationResponse.data === "OK") {
        $state.go('app.dashboard-variant-1');
      } else {
        $scope.warning = "invalid Credentials";
        console.log($scope.warning);

0 个答案:

没有答案