diff --git a/src/assets/api.js b/src/assets/api.js index 02289809..2cd7f442 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -21,7 +21,7 @@ if (process.env.NODE_ENV == 'production') { /* 开发环境 */ if (process.env.NODE_ENV == 'development') { - window.unifiedUrl = 'http://192.168.7.200:8888/#/login'; + window.unifiedUrl = 'http://192.168.7.200:8888/#/'; } const ApiUrl = diff --git a/src/pages/login/login.js b/src/pages/login/login.js index 11a25064..f2c97c0f 100644 --- a/src/pages/login/login.js +++ b/src/pages/login/login.js @@ -37,7 +37,7 @@ export default class App extends Component { /* 跳转统一登录平台 */ toUnifiedLogin() { setTimeout(() => { - window.location.href = `${window.unifiedUrl}?url=${encodeURIComponent( + window.location.href = `${window.unifiedUrl}#/?url=${encodeURIComponent( window.location.href )}`; }, 1500);