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
e6ed9200
Commit
e6ed9200
authored
Sep 25, 2018
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改domain
parent
09a556ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
client/actions/common.js
+5
-2
client/env/development.js
+2
-1
No files found.
client/actions/common.js
View file @
e6ed9200
...
@@ -2,6 +2,9 @@ import fetch from 'isomorphic-fetch';
...
@@ -2,6 +2,9 @@ import fetch from 'isomorphic-fetch';
import
actionType
from
'../actiontype/common'
import
actionType
from
'../actiontype/common'
import
{
addErrorInfo
}
from
'./uploadError'
import
{
addErrorInfo
}
from
'./uploadError'
let
domain
=
ENV
.
domain
;
let
domain
=
ENV
.
domain
;
let
domain1
=
"http://192.168.10.169:7788/web/"
let
myHeaders
=
new
Headers
({
let
myHeaders
=
new
Headers
({
// 'Access-Control-Allow-Origin': '*',
// 'Access-Control-Allow-Origin': '*',
// 'Content-Type': 'text/plain;charset=UTF-8',
// 'Content-Type': 'text/plain;charset=UTF-8',
...
@@ -13,7 +16,7 @@ let myHeaders = new Headers({
...
@@ -13,7 +16,7 @@ let myHeaders = new Headers({
const
getStoreInfo
=
(
storeId
)
=>
{
const
getStoreInfo
=
(
storeId
)
=>
{
return
(
dispatch
)
=>
{
return
(
dispatch
)
=>
{
let
bodyData
=
{
storeId
};
let
bodyData
=
{
storeId
};
fetch
(
domain
+
'pad_warehouse/getMachineData.action'
,{
fetch
(
domain
1
+
'pad_warehouse/getMachineData.action'
,{
// credentials : 'include',
// credentials : 'include',
method
:
'POST'
,
method
:
'POST'
,
mode
:
'cors'
,
mode
:
'cors'
,
...
@@ -37,7 +40,7 @@ const getStoreInfo = (storeId)=>{
...
@@ -37,7 +40,7 @@ const getStoreInfo = (storeId)=>{
const
getUserinfo
=
(
employeeId
,
storeId
)
=>
{
const
getUserinfo
=
(
employeeId
,
storeId
)
=>
{
let
bodyData
=
Object
.
assign
({},{
employeeId
,
storeId
})
let
bodyData
=
Object
.
assign
({},{
employeeId
,
storeId
})
return
(
dispatch
)
=>
{
return
(
dispatch
)
=>
{
fetch
(
domain
+
'machine_pad/get_alowed_task.action'
,{
fetch
(
domain
1
+
'machine_pad/get_alowed_task.action'
,{
// credentials : 'include',
// credentials : 'include',
method
:
'POST'
,
method
:
'POST'
,
mode
:
'cors'
,
mode
:
'cors'
,
...
...
client/env/development.js
View file @
e6ed9200
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
* Created by ruibing on 16/11/2.
* Created by ruibing on 16/11/2.
*/
*/
module
.
exports
=
{
module
.
exports
=
{
domain
:
'http://192.168.10.1
69:7788
/web/'
,
domain
:
'http://192.168.10.1
28:8080
/web/'
,
uploadImg
:
'https://preprod.mjitech.com/static/uploadTrouble'
uploadImg
:
'https://preprod.mjitech.com/static/uploadTrouble'
}
}
\ No newline at end of file
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