在React Native中点击API时获取308状态代码

问题描述

我正在对用户进行身份验证的项目中,正在使用apisauce命中api。在IOS上,它工作正常,但是当我从android尝试时,我收到此消息You should be redirected automatically to target URL with Status code 308。我真的很努力,有人可以帮我解决这个问题。

import apiclient from "./client";

const login = (username,password,id) =>
  apiclient.post("/api/user/login",{ username,id });

export default {
  login,};



import { create } from "apisauce";

    const apiclient = create({
      baseURL: "http://basedomain.com",headers: {
        Accept: "application/json","Content-Type": "application/json;charset=utf-8",},});
    
    export default apiclient;
    
         

解决方法

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

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

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