Commit bdea5b04 by 曾经

开发环境 域名替换

parent c6110941
......@@ -9,28 +9,28 @@
module.exports = {
proxyList: {
'/api-auth/': {
target: 'http://gicdev.demogic.com/api-auth/',
target: 'http://www.gicdev.com/api-auth/',
changeOrigin: true,
pathRewrite: {
'^/api-auth': ''
}
},
'/api-admin/': {
target: 'http://gicdev.demogic.com/api-admin/',
target: 'http://www.gicdev.com/api-admin/',
changeOrigin: true,
pathRewrite: {
'^/api-admin': ''
}
},
'/api-plug/': {
target: 'http://gicdev.demogic.com/api-plug/',
target: 'http://www.gicdev.com/api-plug/',
changeOrigin: true,
pathRewrite: {
'^/api-plug': ''
}
},
'/sharing-core-web/': {
target: 'http://gicdev.demogic.com/sharing-core-web/',
target: 'http://www.gicdev.com/sharing-core-web/',
changeOrigin: true,
pathRewrite: {
'^/sharing-core-web': ''
......
......@@ -22,7 +22,7 @@ export default {
},
created() {
this.baseUrl = window.location.origin.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : window.location.origin;
this.baseUrl = window.location.origin.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : window.location.origin;
this._getUserInfo();
this.changeTab();
},
......
......@@ -8,7 +8,7 @@ import {
Vue.axios.defaults.timeout = 25000;
let local = window.location.origin;
if (local.indexOf('localhost') != -1) {
local = 'http://gicdev.demogic.com';
local = 'http://www.gicdev.com';
}
Vue.axios.interceptors.request.use(
......
......@@ -17,7 +17,7 @@ export default {
errorMsg: function (response) {
let local = window.location.origin;
if (local.indexOf('localhost')) {
local = 'http://gicdev.demogic.com';
local = 'http://www.gicdev.com';
}
if (response.errorCode != 1) {
if (response.errorCode == 4) {
......
......@@ -101,7 +101,7 @@ export default {
const that = this;
let host = window.location.origin;
if (host.indexOf('localhost') != -1) {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......@@ -117,7 +117,7 @@ export default {
let host = window.location.origin;
let baseUrl;
if (host.indexOf('localhost') != '-1') {
baseUrl = 'http://gicdev.demogic.com';
baseUrl = 'http://www.gicdev.com';
} else {
baseUrl = host;
}
......
......@@ -101,7 +101,7 @@ export default {
const that = this;
let host = window.location.origin;
if (host.indexOf('localhost') != -1) {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......@@ -117,7 +117,7 @@ export default {
let host = window.location.origin;
let baseUrl;
if (host.indexOf('localhost') != '-1') {
baseUrl = 'http://gicdev.demogic.com';
baseUrl = 'http://www.gicdev.com';
} else {
baseUrl = host;
}
......
......@@ -101,7 +101,7 @@ export default {
const that = this;
let host = window.location.origin;
if (host.indexOf('localhost') != -1) {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......@@ -117,7 +117,7 @@ export default {
let host = window.location.origin;
let baseUrl;
if (host.indexOf('localhost') != '-1') {
baseUrl = 'http://gicdev.demogic.com';
baseUrl = 'http://www.gicdev.com';
} else {
baseUrl = host;
}
......
const host = window.location.origin;
// eslint-disable-next-line
export const baseUrl = host.indexOf('localhost') > '-1' ? 'http://gicdev.demogic.com' : host;
export const baseUrl = host.indexOf('localhost') > '-1' ? 'http://www.gicdev.com' : host;
export const ERR_OK = 0;
......@@ -4,7 +4,7 @@ import { Message } from 'element-ui';
const host = window.location.origin;
const BASEURL = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com/gic-member-tag-web' : `${host}/gic-member-tag-web`;
const BASEURL = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com/gic-member-tag-web' : `${host}/gic-member-tag-web`;
const server = axios.create({
baseURL: BASEURL,
......
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