File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
- import config from '@/config/config ' ;
2
+ import envconfig from '@/envconfig/envconfig ' ;
3
3
/**
4
4
* 主要params参数
5
5
* @params method {string} 方法名
@@ -23,7 +23,7 @@ export default class Server {
23
23
_option = {
24
24
method,
25
25
url,
26
- baseURL : config . baseURL ,
26
+ baseURL : envconfig . baseURL ,
27
27
timeout : 30000 ,
28
28
params : null ,
29
29
data : null ,
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { connect } from 'react-redux';
4
4
import { is , fromJS } from 'immutable' ;
5
5
import PropTypes from 'prop-types' ;
6
6
import API from '@/api/api' ;
7
- import config from '@/config/config ' ;
7
+ import envconfig from '@/envconfig/envconfig ' ;
8
8
import { saveFormData , saveImg , clearData } from '@/store/home/action' ;
9
9
import { clearSelected } from '@/store/production/action' ;
10
10
import PublicHeader from '@/components/header/header' ;
@@ -62,7 +62,7 @@ class Home extends Component {
62
62
let formdata = new FormData ( ) ;
63
63
formdata . append ( 'file' , event . target . files [ 0 ] ) ;
64
64
let result = await API . uploadImg ( { data : formdata } ) ;
65
- this . props . saveImg ( config . imgUrl + result . image_path ) ;
65
+ this . props . saveImg ( envconfig . imgUrl + result . image_path ) ;
66
66
console . log ( result ) ;
67
67
} catch ( err ) {
68
68
console . error ( err ) ;
You can’t perform that action at this time.
0 commit comments