|
|
@@ -19,6 +19,7 @@ import {
|
|
|
verifyJSON,
|
|
|
} from '../helpers/utils';
|
|
|
import { API } from '../helpers/api';
|
|
|
+import axios from "axios";
|
|
|
|
|
|
const SystemSetting = () => {
|
|
|
let [inputs, setInputs] = useState({
|
|
|
@@ -383,7 +384,7 @@ const SystemSetting = () => {
|
|
|
return;
|
|
|
}
|
|
|
try {
|
|
|
- const res = await API.get(inputs['oidc.well_known']);
|
|
|
+ const res = await axios.create().get(inputs['oidc.well_known']);
|
|
|
inputs['oidc.authorization_endpoint'] =
|
|
|
res.data['authorization_endpoint'];
|
|
|
inputs['oidc.token_endpoint'] = res.data['token_endpoint'];
|