Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xin
max_android_panel
Commits
fac20f45
Commit
fac20f45
authored
May 13, 2019
by
刘珅
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
deabd777
' into dev
# Conflicts: # client/util/logger.js # client/util/socket.js
parents
aef9c86c
deabd777
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
9 deletions
+8
-9
client/config/config.js
+1
-1
client/env/development.js
+2
-1
client/env/production.js
+2
-1
client/env/test.js
+2
-1
client/util/logger.js
+1
-1
webpack.config.js
+0
-4
No files found.
client/config/config.js
View file @
fac20f45
...
...
@@ -2,7 +2,7 @@ import { getQuery } from '../util/common';
const
requestInfo
=
{
domainPort
:
'7788'
,
domainIp
:
'192.168.10
.'
,
domainIp
:
process
.
env
.
NODE_ENV
!==
'production'
?
'192.168.10.'
:
'192.168.8
.'
,
exactDomainIp
:
getQuery
(
'isDev'
)
?
'127.0.0.1'
:
''
}
...
...
client/env/development.js
View file @
fac20f45
...
...
@@ -2,6 +2,6 @@
* Created by ruibing on 16/11/2.
*/
module
.
exports
=
{
domain
:
'https://
test
.mjitech.com/web/'
,
domain
:
'https://
www
.mjitech.com/web/'
,
uploadImg
:
'https://preprod.mjitech.com/static/uploadTrouble'
}
\ No newline at end of file
client/env/production.js
View file @
fac20f45
...
...
@@ -2,6 +2,6 @@
* Created by ruibing on 16/11/2.
*/
module
.
exports
=
{
domain
:
'https://
test
.mjitech.com/web/'
,
domain
:
'https://
www
.mjitech.com/web/'
,
uploadImg
:
"https://preprod.mjitech.com/static/uploadTrouble"
}
\ No newline at end of file
client/env/test.js
View file @
fac20f45
...
...
@@ -2,6 +2,6 @@
* Created by ruibing on 16/11/2.
*/
module
.
exports
=
{
domain
:
'https://
preprod
.mjitech.com/web/'
,
domain
:
'https://
www
.mjitech.com/web/'
,
uploadImg
:
'https://preprod.mjitech.com/static/uploadTrouble'
}
\ No newline at end of file
client/util/logger.js
View file @
fac20f45
import
fetch
from
'isomorphic-fetch'
;
let
domain
=
"
http://192.168.10.63:7780
"
;
let
domain
=
""
;
const
domainPort
=
CONFIG
.
config
.
domainPort
;
const
myHeaders
=
new
Headers
({
...
...
webpack.config.js
View file @
fac20f45
...
...
@@ -65,7 +65,6 @@ let baseConfig = {
function
getEnv
(){
const
args
=
require
(
'minimist'
)(
process
.
argv
.
slice
(
2
));
let
env
;
console
.
log
(
"===================== args "
,
args
);
if
(
args
.
_
.
length
>
0
&&
args
.
_
.
indexOf
(
'start'
)
!==
-
1
){
env
=
'test'
;
}
else
if
(
args
.
env
){
...
...
@@ -77,7 +76,6 @@ function getEnv(){
}
let
env
=
getEnv
();
console
.
log
(
"===================== env "
,
env
);
function
getVersion
(){
const
args
=
require
(
'minimist'
)(
process
.
argv
.
slice
(
2
));
...
...
@@ -90,8 +88,6 @@ function getVersion(){
let
curversion
=
getVersion
();
console
.
log
(
"===================== version "
,
curversion
,
typeof
curversion
);
let
envConfig
=
{
'build'
:{
output
:{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment