Commit 15d969fa authored by wty's avatar wty

更改请求域名

parent dd35fc5e
......@@ -16,8 +16,9 @@ const submitRouter = require('./routes/page')
const typeManage = require('./routes/typeManage')
const app = express();
console.info(os.networkInterfaces())
// global.domain = 'http://10.104.83.91:3000/'
global.domain = 'http://' + os.networkInterfaces()['eth0'][0]['address'] + ':3000'
console.info(global.domain)
// global.domain = 'http://127.0.0.1:3001'
const Eureka = require('eureka-node').default
......
const apiConfig = {
// domain: 'http://' + window.location.hostname + ':3000',
domain: 'http://127.0.0.1:3001',
domain: 'http://' + window.location.hostname + ':3000',
// domain: 'http://127.0.0.1:3001',
}
export default apiConfig
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