Commit e6ed9200 by Zhang Xin

修改domain

parent 09a556ed
......@@ -2,6 +2,9 @@ import fetch from 'isomorphic-fetch';
import actionType from '../actiontype/common'
import {addErrorInfo} from './uploadError'
let domain = ENV.domain;
let domain1 = "http://192.168.10.169:7788/web/"
let myHeaders = new Headers({
// 'Access-Control-Allow-Origin': '*',
// 'Content-Type': 'text/plain;charset=UTF-8',
......@@ -13,7 +16,7 @@ let myHeaders = new Headers({
const getStoreInfo = (storeId)=>{
return(dispatch)=>{
let bodyData = {storeId};
fetch(domain + 'pad_warehouse/getMachineData.action',{
fetch(domain1 + 'pad_warehouse/getMachineData.action',{
// credentials : 'include',
method : 'POST',
mode : 'cors',
......@@ -37,7 +40,7 @@ const getStoreInfo = (storeId)=>{
const getUserinfo = (employeeId,storeId)=>{
let bodyData = Object.assign({},{employeeId,storeId})
return(dispatch)=>{
fetch(domain + 'machine_pad/get_alowed_task.action',{
fetch(domain1 + 'machine_pad/get_alowed_task.action',{
// credentials : 'include',
method : 'POST',
mode : 'cors',
......
......@@ -2,6 +2,6 @@
* Created by ruibing on 16/11/2.
*/
module.exports = {
domain: 'http://192.168.10.169:7788/web/',
domain: 'http://192.168.10.128:8080/web/',
uploadImg : 'https://preprod.mjitech.com/static/uploadTrouble'
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment