Axios 拦截器在调试中反应本机但应用程序在发布构建中崩溃

问题描述 投票:0回答:0

Axios 拦截器在 React js 和 React Native 调试中运行良好, 我看到像这样导入 axios 会使应用程序崩溃

从'../../Api/useAxiosPrivate'导入axiosPrivate;

当我像下面这样导入时

从'../../Api/useAxiosPrivate'导入{axiosPrivate};

意味着当我添加花括号时没有崩溃但是 axiosPrivate 不工作

reactjs react-native axios interceptor
© www.soinside.com 2019 - 2024. All rights reserved.