资源库接口地址是另一个服务器

This commit is contained in:
caishi 2021-04-13 11:10:54 +08:00
parent d73e127f3d
commit 3701abc2c9
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export function initAxiosInterceptors(props) {
setpostcookie()
clearAllCookie()
if (config.url.indexOf(proxy) !== -1) {
if (config.url.indexOf(proxy) !== -1 || config.url.indexOf("http") !== -1) {
return config
}
requestProxy(config)

View File

@ -16,7 +16,7 @@ const sort = [
"按引用排序"
]
const limit = 15;
const https = 'https://testfiles.trustie.net';
const https = 'http://117.50.100.12:8001';
function Index(props){
const [ sortValue , setSortValue ] = useState(0);
const [ page , setPage ] = useState(1);

View File

@ -5,7 +5,7 @@ import { AlignCenter } from '../Component/layout';
import axios from 'axios';
const { TextArea } = Input;
const https = 'https://testfiles.trustie.net';
const https = 'http://117.50.100.12:8001';
function UploadSource({ form , visible , onCancel , onOk , showNotification , attachments , id ,owner,projectsId}){
const [ tableData , setTableData ] = useState(undefined);
const [ fileId , setFilesId ] = useState(undefined);