Commit bdea5b04 by 曾经

开发环境 域名替换

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