Commit 440008f9 by caoyanzhi

update: 修复生产环境跳转到测试环境的bug

parent 90fdcd7e
...@@ -6,7 +6,7 @@ import { Message } from 'element-ui'; ...@@ -6,7 +6,7 @@ import { Message } from 'element-ui';
export default { export default {
errorMsg: function(response) { errorMsg: function(response) {
var local = window.location.origin; var local = window.location.origin;
if (local.indexOf('localhost')) { if (local.indexOf('localhost') != -1) {
local = 'http://gicdev.demogic.com'; local = 'http://gicdev.demogic.com';
} }
if (response.errorCode != 0) { if (response.errorCode != 0) {
......
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